Can Stock Market Losses Offset Capital Gain