Derive the equation for calculating compound interest.
user
The equation for calculating compound interest is A = P(1+r/n)^nt, where A is the amount at the end of the investment period, P is the principal amount, r is the rate of interest, n is the number of times the interest is compounded in a year, and t is the number of years the investment is held for.
assistant