Let's say that for $30$ years I insert $.20$ dollars every year into a bank account for with interest rate $5\%$. After 30 years, I stop inserting money, and start withdrawing 0.70 dollars every year. Question: For how many years will I be able to withdraw 0.7 dollars before the account is empty?
My approach is by calculating the amount saved after $30$ years: I get $0.2 \times (\sum_{i=1}^{30} (1.05)^i)$. Then, we start withdrawing 0.7 dollars from here on out for, say, $s$ years, and by looking at the calculations for each year, I generalize to the following formula for the bank account after $30 + s$ years: $0.2 \times (\sum_{i=1}^{30+s} 1.05^i) - 0.7 \times (\sum_{i=1}^{s} 1.05^i) $.
Is this correct so far? And what next? I want the $s$ which makes the bank account zero, but solving that equation in Maple gives me complex numbers. What's gone wrong?
I think $0.2 \times (\sum_{i=1}^{30+s} 1.05^i)$ would only be correct if you continued to deposit 0.2 \$ for $s$ years after the 30 years. If you stop, then it should be $0.2 \times (\sum_{i=1}^{30} 1.05^i) \times 1.05^s$. Let $a$ be the amount of money after 30 years, i.e. $a = 0.2 \times (\sum_{i=1}^{30}1.05^i)$. Then you withdraw 0.7 \$, so after 31 years you'd have $(a-0.7)\cdot 1.05 = a\cdot 1.05 - 0.7\cdot 1.05$. By the same procedure, after 32 years you'd have $((a\cdot 1.05 - 0.7\cdot 1.05) - 0.7)\cdot 1.05 = a\cdot 1.05^2 - 0.7\cdot 1.05^2 - 0.7\cdot 1.05$. So if my reasoning is correct, after $s$ years you'd have $a\cdot 1.05^s - 0.7\cdot(\sum_{i=1}^{s} 1.05^i)$.