The formula to calculate simple interest is:
where I is the interes earned, P is the principal, R is the interest rate in decimal form and T is the time we leave the money.
In our case, we know that:
Plugging this values on the formula and solving for T, we have:
Therefore, Ana leave the money in the savings account for 3 years.