EXPLANATION
Let's see the facts:
Investment = Principal = P = 4,000
Interest rate = r = 4% = 0.04 (decimal form)
n= number of times the interest rate is compounding per unit of t = 365
t= time = 8
The compounding interest formula is:

Replacing terms:

Adding numbers:

Solving the power:

Multiplying numbers:

The answer is $5,508