Module

x/financial/src/financial.ts>ppmt

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

Compute the payment against loan principal.

Parameters

rate: number
  • Rate of interest (per period)
per: number
  • Amount paid against the loan changes. The per is the period of interest.
nper: number
  • Number of compounding periods
pv: number
  • Present value
optional
fv = [UNSUPPORTED]
  • Future value
optional
when = [UNSUPPORTED]
  • When payments are due

Returns

number

the payment against loan principal