Consider the equation that models the amount earned due to interest of an investment where A is the amount of money in the account in dollars, P is the starting investment in dollars, r is the rate of interest earned, t is the time in years, n is the number of times the interest is compounded per year.