I need help with some javascript / maths.

Author Topic: I need help with some javascript / maths.  (Read 335 times)

So, I've been trying to translate the attached formula into javascript, and I can't seem to get it right.
I have:
Code: [Select]
R = (Math.pow(FV/PV,1/years)-1);which doesn't equate things properly.

The final formula at the bottom is what I need.
Help will be rewarded!

I figured it out. You guys missed out on a free €5 game from steam </3