Given data:
The given principal is P=$5,000.
The given rate is r=4.7%.
The given time is t=17 years.
The expression for the final amount after 17 years,
Substitute the given values in the above expression.
Thus, the final balance after 17 years is $8,995.