Question: how to calculate compound interest with regular contributions?
Answer: A = the future value of the investment/loan, including interest.
P = the principal investment amount (the initial deposit or loan amount)
PMT = the monthly payment.
r = the annual interest rate (decimal)
n = the number of times that interest is compounded per unit t.