Offsetting Capital Gains With Ordinary Losses And Capital Losses