Calculates the cumulative principal paid on a loan between a start period and
an end period.
Remarks:
Make sure that you are consistent about the units you use for specifying
rate and periods. If you make monthly payments on a four-year loan at
an annual interest rate of 12 percent, use 0.12 / 12 for rate and
4 * 12 for periods. If you make annual payments on the same loan, use
0.12 for rate and 4 for periods.
If rate <= 0, periods <= 0, or presentValue <= 0, this function
throws a RangeError.
If startPeriod < 1, endPeriod < 1, or startPeriod >
endPeriod, this function throws a RangeError.
Calculates the cumulative principal paid on a loan between a start period and an end period.
Remarks:
rateandperiods. If you make monthly payments on a four-year loan at an annual interest rate of 12 percent, use0.12 / 12forrateand4 * 12forperiods. If you make annual payments on the same loan, use0.12forrateand4forperiods.rate<=0,periods<=0, orpresentValue<=0, this function throws a RangeError.startPeriod<1,endPeriod<1, orstartPeriod>endPeriod, this function throws a RangeError.