How Is Real Estate Capital Gains Calculated