We are given the following information
Deposit amount = P = $37,000
Accumulated amount (or ending balance) = A = $40,871.02
Interest rate = r = 4% = 0.04
Compounding interval = n = 4 (quarterly)
We are asked to find the number of years (t)
Recall that the compound interest formula is given by
A = Accumulated amount (or ending balance)
P = Principle amount (or deposit amount)
r = Interest rate in decimal
n = Number of compounding in a year
t = Number of years
Now let us substitute the given values into the above formula and solve for (t)
Now take log on both sides
Therefore, it would take 2.5 years