How do you calculate the modified duration of a bond?

What steps are involved in determining a bond’s sensitivity to interest rate changes?