My teacher gave us this equation, and I can't remember how to use it. It's for Simple and Compound Interest.

Future Value=d[((1+i)^n-1)/i]
d=deposit each time period
i=rate per time period
n=number of time periods

Oh, these are the variable inputs.

d=deposit each time period
i=rate per time period
n=number of time periods