June wishes to plan for her retirement and decides to invest 1000 dollars a year into an RRSP starting age 18 until age 30. After 30, she no longer contributes any money but leaves in her RRSP until age 65. Jas on the other hand, contributes 1500 dollars a year from age 35 to age 65 in the same RRSP investment. Assuming that the interest rate was fixed at 8.5% compounded annually,
How much would each have at age 65?
Apparently the answers are, for June, 339,758.97, and for Jas, 186.322.09
Unfortunately I only know the formula if there was no annual contribution. For example, I know that once June is 30, it's a geometric series, but I'm not sure how to get the amount up to when she's 30.