We can use the formula for compound interest to find the time it will take to reach the target amount:
FV = PV * (1 + r)^t
where FV is the future value (target amount), PV is the present value (amount you have today), r is the interest rate, and t is the time (in years).
Substituting the given values, we get:
230000 = 31000 * (1 + 0.045)^t
Simplifying and solving for t, we get:
t = log(230000/31000) / log(1 + 0.045)
t ≈ 14.09
Therefore, it will take approximately 14.09 years to save enough to buy the Ferrari.