Answer:
21 years.
Explanation :
Since, the amount in a saving account after t years is,

Where, r is the annual rate ( in decimals ),
P is the invested amount,
t is the time ( in years ),
Here, P = $ 220,
r = 3 % =
= 0.03,
Hence, the amount after t years in the given account,


According to the question,
A ≥ $ 400,


Taking log both sides,


By using calculator,

Hence, David's investment will be at least $400 after approximate 21 years.