Compute the amount of compound interest earned in 1 year for an investment of $1,000,000 with a nominal interest rate of 8% compounded quarterly

amount = 1000000(1.02)^4

= ...

interest earned = amount - 1000000