nathanlubchenco/retirement-calculator — pull request #4 by sagevann (2014-06-17 16:08:17+00:00)
Title: Percentages fixed

You were not converting from 10.00% to .1000 before doing the math on inflation and market returns so everything was multiplied by several orders of magnitude.

I still get some wacky results for this request:

http://localhost:9000/v1/simulateRetirement/initialCapital/10000000000000/monthlyExpenses/50/yearsToEarlyRetirement/3/yearsToRetirementAge/10

Should never, reasonably, return a negative value, but it does.