Calculate the Macaulay duration of a bond - the weighted average time to receive all cash flows. Duration measures a bond’s sensitivity to interest rate changes and is expressed in years. Higher duration means greater price sensitivity to rate changes. Essential for immunization strategies, duration matching, and interest rate risk management. [Tier: STANDARD, Credits: 2]
API key for authentication. Get your key at https://api.fincept.in/auth/register
Annual coupon rate as a decimal
0.06
Time to maturity in years
10
Yield to maturity as a decimal
0.05
Face value of the bond
100
Coupon payment frequency per year
1, 2, 4, 12 2