Payments
in package
Table of Contents
Methods
- annuity() : float|string
- PMT.
- interestPayment() : float|string
- PPMT.
Methods
annuity()
PMT.
public
static annuity(mixed $interestRate, mixed $numberOfPeriods, mixed $presentValue[, mixed $futureValue = 0 ][, mixed $type = FinancialConstants::PAYMENT_END_OF_PERIOD ]) : float|string
Returns the constant payment (annuity) for a cash flow with a constant interest rate.
Parameters
- $interestRate : mixed
-
Interest rate per period
- $numberOfPeriods : mixed
-
Number of periods
- $presentValue : mixed
-
Present Value
- $futureValue : mixed = 0
-
Future Value
- $type : mixed = FinancialConstants::PAYMENT_END_OF_PERIOD
-
Payment type: 0 = at the end of each period, 1 = at the beginning of each period
Return values
float|string —Result, or a string containing an error
interestPayment()
PPMT.
public
static interestPayment(mixed $interestRate, mixed $period, mixed $numberOfPeriods, mixed $presentValue[, mixed $futureValue = 0 ][, mixed $type = FinancialConstants::PAYMENT_END_OF_PERIOD ]) : float|string
Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate.
Parameters
- $interestRate : mixed
-
Interest rate per period
- $period : mixed
-
Period for which we want to find the interest
- $numberOfPeriods : mixed
-
Number of periods
- $presentValue : mixed
-
Present Value
- $futureValue : mixed = 0
-
Future Value
- $type : mixed = FinancialConstants::PAYMENT_END_OF_PERIOD
-
Payment type: 0 = at the end of each period, 1 = at the beginning of each period
Return values
float|string —Result, or a string containing an error