Excel codes for performing backward induction to calculate callable bonds and mortgages