Sold shares at a loss? Heres how short-term capital loss can be used to cut long-term capital gains tax