Calculates the number of periods for an investment based on periodic,
constant payments and a constant interest rate.
Remarks:
Make sure that you are consistent about the units you use for specifying
rate. If you make monthly payments on a four-year loan at an annual
interest rate of 12 percent, use 0.12 / 12 for rate. If you make
annual payments on the same loan, use 0.12 for rate.
A result of -0 is normalized to 0.
Parameters
options: PeriodsOptions
The periods calculation options.
Returns number
Number of periods.
Throws
When calculation is impossible with the provided inputs.
Calculates the number of periods for an investment based on periodic, constant payments and a constant interest rate.
Remarks:
rate. If you make monthly payments on a four-year loan at an annual interest rate of 12 percent, use0.12 / 12forrate. If you make annual payments on the same loan, use0.12forrate.-0is normalized to0.