What is the formula for calculating compound interest?

Answer
Future value = p(1 + r/n)^(y*n)where p = initial principal r = annual interest rate espressed as a fraction (5% = .05) n = compounding frequency for the year (e.g. 12 if monthly) y = number of years