Using compound interest, it is found that the person must leave money in the bank for 17.6 years.
The amount of money earned, in compound interest, after t years, is given by:
[tex]A(t) = P\left(1 + \frac{r}{n}\right)^{nt}[/tex]
In which:
In this problem, we want to find t when:
[tex]A(t) = 3400, P = 1000, r = 0.07, n = 4[/tex].
Hence:
[tex]A(t) = P\left(1 + \frac{r}{n}\right)^{nt}[/tex]
[tex]3400 = 1000\left(1 + \frac{0.07}{4}\right)^{4t}[/tex]
[tex](1.0175)^{4t} = 3.4[/tex]
[tex]\log{(1.0175)^{4t}} = \log{3.4}[/tex]
[tex]4t\log{1.0175} = \log{3.4}[/tex]
[tex]t = \frac{\log{3.4}}{4\log{1.0175}}[/tex]
[tex]t = 17.6[/tex]
The person must leave money in the bank for 17.6 years.
More can be learned about compound interest at https://brainly.com/question/25781328