We are asked to determine the future value and the time for a quarterly compounded interest. To do that we will use the following formula:

Where:

Part A. We are asked to determine the time in 7 years. To do that we will substitute the value of "t = 7" and "r = 2", we get:

Solving the operations:

Therefore, in 7 years there will be the amount of $4599.49
Part B. We are asked to determine the time to get the amount of $5000. To do that we will substitute the value of "A = 5000", and we get:

Now, we solve for "t". First, we divide both sides by 4000:

Now, we take the natural logarithm to both sides:

Now, we use the following property of logarithms:

Applying the property we get:
![\operatorname{\ln}((5,000)/(4,000))=4t\operatorname{\ln}(1+(2)/(400))]()
Now, we divide both sides by the natural logarithm and by 4:

Solving the operations:

Therefore, the amount of 5000 will be obtained after 11.19 years.