Calculates how many compounding periods are required for an investment with a given current value that appreciates at a given rate in order to reach a specified target value.
INVESTMENT_DURATION(settlement: String, maturity: String, rate: Number, yield: Number, frequency: Number, basis: String = us_nasd) => Number
The security's settlement date.
The security's maturity or end date.
The annualized rate of interest.
The expected annual yield of the security.
Yearly interest/coupon payments count (1, 2, or 4).
Method to use for counting days per month/year:
date1 = "2010-01-01T13:06:15+03:00"date2 = "2039-01-01T13:06:15+03:00"date3 = "2009-01-30T13:06:15+03:00"date4 = "2023-07-30T13:06:15+03:00"