Fixed earlier bugs

Earlier commit required some additional casts to make the Math.Pow
functions play nice.

I checked the math against an excel spread-sheet I have and it's working
out for the given APR and payment# for 4-payments per year.