View Single Post
 01-24-2013, 04:01 PM PM User | #3 mosquitobite New to the CF scene   Join Date: Jan 2013 Posts: 4 Thanks: 2 Thanked 1 Time in 1 Post Hi Phillip Thank you very much for your response and for your script verification. Now thats an interesting result, it is showing up the same as my scripts. It could very well be possible that this may be an accurate answer. I rechecked my formula in my econ text book. I did made a mistake in my earlier post for it should be A / G instead of F / G. My apologies for this misrepresentation. it should be this formula, which is identical to my Econ book. So, theoretically it should be correct :/. I can't say I am confident on my math skills but this what I got when I calculated manually. So base on my result I was expecting something similar for my script. Unless my calculation and order of operation is flawed. Variables G = 10 I = 10 / 100 = .10 N = 10 Formula G = (1/.10) - (10 / ((1 + .10)^10) - 1) My manual calculation and results A) 1/.10 = 10 Formula - (1/I) B) 1 + .10 = 1.10 => (1.10)^10 = 2.59 => 2.59 - 1 = 1.59 Formula (1+I)^10 - 1) C) 10 / 1.59 = 6.28 Formula - 10 / (1+i)^N -1 D) 10 - 6.28 = 3.71 Formula (1/i) - (N / (1 + i)^N -1 E) 10 * 3.71 = 37.10 Formula G *1/i) - (N / (1 + i)^N -1 So I came to my final as 37.10 ~ 37.30 depending on the calculator I use. I was trying to replicate this with my javascript assuming my manual calculation is close of being correct. Would you happen something I did wrong? Thank you very much.