See https://ttlc.intuit.com/community/tax-credits-deductions/discussion/i-had-to-sell-a-house-in-an-esta...