How Do Capital Gains Affect Agi