pmt Function

Calculates the amount that must be paid every period to repay a loan.


real pmt(real principal, real interest, real life)

Parameter

Description

principal

The amount that was originally borrowed.

interest

The interest that is applied each period to the amount borrowed.

life

The number of periods over which the loan is repaid.

The amount that must be paid every period.

The life and interest parameters must be expressed in the same time units.

The value of the life parameter must be greater than 0.0.

  • pmt(4000,0.14,4); //Returns the value 1372.82.

  • pmt(10000,0.10,20); //Returns the value 1174.60.

Community Additions

ADD
Show: