By earning an annual interest, the amount of money that can be earned after n years is calculated through the equation,
F = P x (1 + r)^n
Substituting the known values,
2,000 = 500 x (1 + 0.06)^n
The value of n from the equation above is 23.79 or approximately 24 years.