Capital Gains exclusion on sale of home

My husband and and I bought our home 24 years ago and lived in it for the first 18 and we have rented it out since 2016. We have chosen to live abroad for the last 6 years as my mother-in-law was unwell and died in 2018.

 

Do we meet the exception to the 2 out of 5 years residence eligibility rule for properties rented out after 2008? Do we qualify for the 500k capital gains exclusion if we sold our home now?