Profit from Selling Assets with Capital Gains