Calculates the modified Macaulay duration of a security that pays periodic interest based on a given expected yield.
INVESTMENT_MDURATION(settlement: String, maturity: String, rate: Number, yield: Number, frequency: Number, basis: String = us_nasd) => Number
Parameter | Description |
Settlement | The security's settlement date. |
Maturity | The security's maturity or end date. |
Rate | The annualized rate of interest. |
Yield | The expected annual yield of the security. |
Frequency | Yearly interest/coupon payments count (1, 2, or 4). |
Basis | 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"
Formula | Return value |
|
|
|
|
|
|
|
|