http://www.intmath.com/Money-Math/annuity_6.gif
Above is the annuities formula (change the - to a + as i am not using it for loans) used to calculate the amount of money accumulated over a period of time with compounding interest, with a monthly input of $W.
the first part is an example...