compound interest formula example with solution Example: compound interest formula A = P(1+(r/n))^(n*t)