How can I write the equivelant of this with Javascript?
or another way to put it is:
I don't usually have to do math so I'm kinda lost here... I tried using the second part and it's not working.
KizMar
------------
Code:
J
M = P x ------------------------
1 - ( 1 + J ) ^ -N
or another way to put it is:
Code:
M = P * ( J / (1 - (1 + J) ** -N))
I don't usually have to do math so I'm kinda lost here... I tried using the second part and it's not working.
KizMar
------------