So (sorry if this seems very dense) you get taxed on cap gains at the according long or short term rate, and then they also go into the pot as a adjusted gross income? (assuming the scenario you used incorporated regular income, with also cap gains) on which you are taxed again?