After you file

Why not?  OP is selling it as a gain, and it may not be a primary residence.