Skip to main content
Module

x/financial/src/financial.ts>nper

A Zero-dependency TypeScript/JavaScript financial library (based on numpy-financial) for Node.js, Deno and the browser
Latest
function nper
import { nper } from "https://deno.land/x/financial@v0.1.3/src/financial.ts";

Compute the number of periodic payments.

Parameters

rate: number
  • Rate of interest (per period)
pmt: number
  • Payment
pv: number
  • Present value
optional
fv = [UNSUPPORTED]
  • Future value
optional
when = [UNSUPPORTED]
  • When payments are due

Returns

number

The number of periodic payments