Deductions & credits

there is no sale until there is a closing. the 5 year period ends on the day before sale. until the title transfers to the buyers you still own it so there is no sale.