Does the Sale of second home converted rental property qualify for partial exclusion of gain if the conversion was due to work related move

We purchased a home as our main residence in 2011, and we were force to relocate to another state due to loss/change of jobs in 2017.  The home was then used as a rental property and managed by an agent ever since, until  year 2020 when we decided to sell it.

 

I am wondering if this sale qualifies for a partial exclusion of gain because it was related to change of jobs hundreds of miles apart, and the event occurred during our ownership and residence in the home.

 

If it does qualify for a partial exclusion, how should I claim this exclusion in Turbo Tax Premier?

 

Thank you very much for your help!