Get your taxes done using TurboTax

If you move due to a listed "hardship" you can use a partial exclusion.  Since you need to have lived there 24 months to get the full exclusion, if you sell in 8 months, you qualify for 8/24th the normal exclusion, which is $83,333 if filing single or $166,666 if filing married filing jointly.  (Roughly speaking.  The exact percentage is determined by the number of days you owned the home, or the number of days since you last used the exclusion, whichever is shorter.) Any gain over that is taxable.  

 

Your basis appears to be 285K plus 20K =305K.  So how much gain you have will depend on the selling price.

 

You can also adjust your gain by certain expenses of buying and selling, see publication 523.

https://www.irs.gov/forms-pubs/about-publication-523