Formula used: A = P (1 + r/n)^(nt)
Where A = future value, P = principal, r = annual rate, n = compounding periods per year, t = years