Module

x/financial/src/financial.ts>ipmt

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

Compute the interest portion of a payment.

Parameters

rate: number
  • Rate of interest as decimal (not per cent) per period
per: number
  • Interest paid against the loan changes during the life or the loan. The per is the payment period to calculate the interest amount
nper: number
  • Number of compounding periods
pv: number
  • Present value
optional
fv = [UNSUPPORTED]
  • Future value
optional
when = [UNSUPPORTED]
  • When payments are due

Returns

number

Interest portion of payment