Problem 601. Retirement savings

At the start of what year will you have reached or exceeded a savings goal?

Parameters (all are constant scalars given in a structure):

  • f.startingSalary: Starting yearly salary
  • f.investRate: Percentage of salary invested each year
  • f.raiseRate: Percentage raise given at beginning of year EXCEPT the first
  • f.returnRate: Percentage gain in invested money
  • f.goal: Savings goal

Simplifying assumptions:

  • All money is invested at the end of the year.
  • Interest is awarded once at the end of the year on money that has been invest for an entire year
  • All interest is reinvested immediately and will gain interest the next year


  • At the beginning of which year will the goal been met or exceeded?

Solution Stats

52.08% Correct | 47.92% Incorrect
Last solution submitted on Sep 09, 2015


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more