Calculates the number of payment periods for an investment based on constant-amount periodic payments and a constant interest rate.
The interest rate. For example: 2%.
The amount of each payment made. For example: -50.
The current value of the annuity. For example: 400.
The future value remaining after the final payment has been made. For example: 0. The default value is 0.
Whether the payments are due at the end (0) or beginning (1) of each period. For example: 0 or 1. The default type is 0.