User:FiveK/Taxable account after-tax balance

Investment growth in a taxable account is reduced by annual dividend taxation and by capital gain taxes when the balance is withdrawn. A relatively simple formula calculates the final after-tax value. This article shows a short derivation of that formula.

Formula for final after-tax value
Converting the summation in the above table's last formula into the closed form equation for the sum of a geometric series gives

(1) $$Basis = P + \tfrac{P*d*(1-z)*((1 + r - d*z)^n - 1)}{(r - d*z)}$$

(2) $$ EOY = P*(1 + r - d*z)^n$$

(3) $$ Amount = EOY-w*(EOY-Basis)$$

(4) $$ Amount = \tfrac {P*((1 + r - d*z)^n*(r - d*z -(r-d)*w) + (r-d)*w)}{(r - d*z)}$$

Divide by P and let $$ e = r - d*z $$

(5) $$ \tfrac {Amount}{P} = \tfrac{(((1 - (1+e)^n)*r + d*(1+e)^n - d)*w + e*(1+e)^n)}{e}$$

Let $$g = r - d $$

(6) $$ \tfrac {Amount}{P} = \tfrac{((g - (1+e)^n*g)*w + e*(1+e)^n)}{e} $$

Let $$ f = \tfrac{w*g}{e} $$

(7) $$ \tfrac {Amount}{P} = (1+e)^n*(1-f) + f $$

(8) $$ Amount = P * [(1+e)^n*(1-f) + f] $$