Module

x/financial/src/financial.ts>pmt

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

Compute the payment against loan principal plus interest.

Parameters

rate: number
  • Rate of interest (per period)
nper: number
  • Number of compounding periods (e.g., number of payments)
pv: number
  • Present value (e.g., an amount borrowed)
optional
fv = [UNSUPPORTED]
  • Future value (e.g., 0)
optional
when = [UNSUPPORTED]
  • When payments are due

Returns

number

the (fixed) periodic payment