n = [ ln(pmt/((abs(pmt-rL))]/[ln(1+r)]
n = number of months to payoff
ln=natural logarithm
abs=absolute value
pmt=your monthly payment
r= monthly interest rate (Fixed APR/12)
L=amount currently owed on the loan
Just do the substitutions, and you will get how long it will take you to payoff.