Edit: realized my mistake: Adding Capital Gains tax for Tax Deferred Investments

EDIT: sorry, different formula… I caught my mistake. Ignore this please.

(Wished AF had a delete function for their edits)

Question about when to add the capital gains tax at the end of the tax deferred capital gains tax forumla.

In Volume 2, Reading 11, Question 14

Why is the calculation for the TDA stock account not include the capital gains tax at the end. They have it (1+R)^n * (1-T) But tax deferred formula is (1+R)^n * (1-T) + capital gains tax. Why isn’t the capital gains tax at the end added? Whereas in question 4, they include the capital gains tax.