Using the formula for the future value

in which p is the annual salary for the first year, i the raise per year and t the time in years.
We calculate only 4 years with the increment because in the first year there is not a raise.
Replace in the formula

then calculate this for the other years and add all the future values together.




add all together
