Question: what is the formula used to calculate compound interest?
Answer: The compound interest formula is ((P*(1+i)^n) - P), where P is the principal, i is the annual interest rate, and n is the number of periods.