Apply the compound interest formula:
A= P (1+r/n)^nt
Where:
A: future value of the investment
P: Principal amount
r: interest rate (in decimal form)
n: number of compounding periods in each year
t: years
Replacing:
A= 20,000 (1+0.08/12)^12x40
A = 20,000 (1.0067)^480
A= 485,467.7116