DURATION(settlement, maturity, coupon, yld, frequency, [basis])
=DURATION("01/01/2023", "01/01/2033", 0.05, 0.06, 2, 0)
The DURATION function calculates the Macaulay duration of a bond with a settlement date of January 1, 2023, a maturity date of January 1, 2033, an annual coupon rate of 5%, a yield to maturity of 6%, semi-annual coupon payments (2 payments per year), and a day count basis of 0 (30/360). The formula returns approximately 7.87, which is the Macaulay duration of the bond in years.
=DURATION("01/01/2023", "01/01/2028", 0.04, 0.045, 4, 0)
In this example, the DURATION function calculates the Macaulay duration of a bond with a settlement date of January 1, 2023, a maturity date of January 1, 2028, an annual coupon rate of 4%, a yield to maturity of 4.5%, quarterly coupon payments (4 payments per year), and a day count basis of 0 (30/360). The formula returns approximately 4.47, which is the Macaulay duration of the bond in years.
The DURATION function is a financial function used to calculate the Macauley duration for a $100 par value. It requires several arguments such as settlement, maturity, coupon, yield, frequency, and basis.