what's wrong with it?
The math doesn't add up, I feel there is a () missing or something.
When I do the actual math, I'm usually $50-60 off. Confusing.
1 person found this helpful
i don't see a problem (except you require interest to be an integer). give an example of an incorrect calculation.
That was it! Sometimes its the simple things...
parseInt was removed from interest in line 9:
var r:Number = (percentage.text) / 100 / 12;
Calculation is now correct!
I was using 200000, 4.5%. for 30 years as my test input and kept getting 954.83, but knowing that was wrong (right answer was 1013.something) I knew something was off. Thanks for looking!
Very Helpful Forum and quite an interesting topic as well !!!
Keep It Up !!