How Do Capital Gains And Losses Affect Taxable Income