Hello, I need some assistance with this precalculus homework question, please?HW Q4

Step 1. The information that we have is:
The principal amount of the investment P:
P=500
The interest rate r:
r=12%
The time of the investment t in years:
t=2
And we also know that the investment is compounded quarterly.
Step 2. We will need the interest rate as a decimal number, for this, we divide it by 100:
[tex]\begin{gathered} r=12/100 \\ r=0.12 \end{gathered}[/tex]We will also need n, which is the number of times of compounding over a year. Since it is compounded quarterly, it is compounded 4 times per year, therefore, the value of n will be 4:
[tex]n=4[/tex]Step 3. Using the compound interest formula
[tex]A=P(1+\frac{r}{n})^{nt}[/tex]Where A is the final amount.
Step 4. Substituting the known values into the formula:
[tex]A=500(1+\frac{0.12}{4})^{4\times2}[/tex]Step 5. The final step is to solve the operations.
First, we simplify the exponent:
[tex]A=500(1+\frac{0.12}{4})^8[/tex]Then, we make the division:
[tex]A=500(1+0.03)^8[/tex]Add 1 and 0.03:
[tex]A=500(1.03)^8[/tex]Keep solving the rest of the operations to find the final amount (the result of the investment after 2 years):
[tex]\begin{gathered} A=500(1.03)^{8} \\ A=500(1.26677) \\ A=633.385 \end{gathered}[/tex]Rounding the result to the nearest cent:
[tex]A=633.39[/tex]The final amount is $633.39
Answer: 633.39