Source: https://money.stackexchange.com/questions/12294/can-a-loss-on-the-sale-of-my-house-offset-capital-gains-tax-from-stock-options