human
How can I calculate compound interest?
assistant
To calculate compound interest, you need to know the principal amount, interest rate, and the number of periods (usually in years). Then, you can use this formula: A = P(1+r/n)^nt, where A is the total accumulated amount, P is the principal amount, r is the interest rate, n is the number of times the interest is compounded per year, and t is the number of years.