Respuesta :

I = p r t
so 
t = I/pr

We can then do:
500 / (4000 x 0.025) = 5 years.

We can check this by doing
4000 x 1.025^5 = 4500 ( which is roughly 500 in profit.