Print Every year data from user input

I am trying to calculate the interest rate earned for every year up until retirement age (65) including the interest rate the user inputs.

ex:
Current_age = 30
Interest rate = 6.0
Contribute_amout = 500
Calculates it annually or monthly

I want to display the Total amount earned for every year up until retirement age
ex:
year 1 earned $530.00
year 2 earned $1091.80
year 3 earned $1187.31
etc…

Sponsor our Newsletter | Privacy Policy | Terms of Service