Calculates the number of periods required by an investment to reach a specified value.
The periods-to-target calculation options.
The number of periods required.
If rate is less than or equal to zero.
rate
If presentValue is zero.
presentValue
calculatePeriodsToTarget({ rate: 0.025, presentValue: 2000, futureValue: 2200,}); // 3.859866162622662 Copy
calculatePeriodsToTarget({ rate: 0.025, presentValue: 2000, futureValue: 2200,}); // 3.859866162622662
Calculates the number of periods required by an investment to reach a specified value.