I am trying to create an equation that shows me how long it will take with an annual withdrawal taken from compounded interest in a present value. I am stuck because I am wanting to take the composition of a function n times until my remaining value is zero or less than zero: For example:
If your future value is determined by the equation:
$$ F(p)=1.05p $$
In dollars.
You then take a fixed amount each year, $w=100$ after interest has been compounded. I then am stuck by having to take the composition of a function of itself until the $F(p) \leq 0$
Long Version:
$$ F(1000)=1050; 1050-w= 950 $$
$$ F(950)=997.5; 997.5-w=897.5 $$
$$ F(897.5) = 942.38; 942.38-w= 842.38 $$
So on and so forth, that leads me to my wall that I hit. I feel to express this correctly i have to use $F(F(p)-w)-w$ n times. Can someone please help me with this thought process?
How can I express this mathematical dilemma?
You can define recurrence relation on the balance. $B_0$ is the beginning balance money and $$B_n = f(B_{n-1}) - w$$ is the balance after $n$ withdrawals.
When $f$ is linear like multiplication as in your example, there is easy way to solve for explicit formula for $B_n$. When $f$ is not a simple function, I do not think there is a way. Suppose that $f(x) = ax$ with $a = 1.05$ in your example. We will try to find some $v$ such that $$B_n - v = a(B_{n-1} - v)$$ Evidently, we must have $$(a-1)v = w$$ so $$v = \frac{w}{a-1}.$$
Now the sequence $C_n = B_n - v$ can be easily solved explicitly $C_n = a^n C_0$ which allows you to deduce $$B_n = C_n + v = a^n (B_0 - v) + v.$$ Then solving for $n$ is a matter of solving equation.