Long Term gain

I purchased a first home in 2013 and lived till April 2022 and moved to a second home, I rented first home from Aug 2022 to July 2024 and sold in July 2024 and gain 300 K  Capitol gain , do I qualify Long term capital gain exclusion on my first home sell capitol gain , under 2/5 years Occupancy test or I am liable for capitol gain on profit.  

 

Aziz