A Closed-Form Formula for Calculating Bond Duration