N = [ log ( 1 + [ ( r*F ) / P ] ) ] / ( log (1+r) )
Where,
F = Future Amount
P = Payment Amount
N = Number of Payments
r = Rate of Interest (compounded)