Once you know how much and when all payments will be made, you have to time-weight their discounted values. To do so, take the present value of each bond payment, discounted by the current yield to maturity. Keeping each present value separate, multiply the present value by the period in which the payment is made. For instance, with a two-year bond paying annual interest payments, you'll multiply the present value of the first payment by 1 and the second payment by 2. Then, add those numbers together and divide the result by the present value of all the bond's payments.