Can Stock Market Losses Offset Capital Gains