Hi there
If the amount deposited at (end) of each year, use the formula of the (future/present) value of annuity ordinary
If the amount deposited at the (beginning) of each year use the formula of the (future/present) value of annuity due
So
FvAo=5,000×(((1+0.0245)^(5)−1)
÷(0.0245))
=26,255.38...answer
Hope it helps