modified the formulae given in the exercise to instead calculate the monthly payments on an annuity