so i'm just learning how to do these questions, and i'm not sure i'm doing it right.

Amy invests $4000 at 8%/a, compounded quarterly. How long will it take for the $4000 to grow to $5000?

is this the way you solve? am i leaving anything out?

5000=4000(1+0.08/4)^n