The formula for compound interest is

Where
A = final amount
P = principle amount
r = interest rate
t = period of time.
Now in our case,
A = 300
P = unknown
r = 4/100 0.04
t = 7 years
Putting the above values in the formula gives

Solving for P gives


Hence, Erki has initially deposited $227.975.