The formula is complicated, but what it boils down to is: Duration = Present value of a bond's cash flows, weighted by length of time to receipt and divided by the bond's current market value. For example, let's calculate the duration of a three-year, $1,000 Company XYZ bond with a semiannual 10% coupon.