Capital Gains

I bought a house 10 years ago. I lived in it as my primary residence for 3.5 years. I then moved to California for work and rented the house out for almost 7 years. I just moved back into the house and plan on selling it after moving back into it for 6 months. Does any of my time living in the house qualify for the capital gains exclusion? 

Here are some more details.

Purchased in 10/2012 for $570,000

Rented the house out from 07/2015  through 08/2022. I plan on living in the house until 02/2023 and list it for ~$900,000.