Taxes and GDP, where do these come in in the formula?
In this equation:

GDP = C + I + G + NX

Taxes come from a combination of C+I but are offset by an increase in G.

Any government taxation which is not spent is an investment, so remains part of I.