about primary residence for Publication 523

Hi 

 

IRS primary residence definition is vague. I am finding hard time find out my the last date of primary residence for Publication 523 tax exclusion. I purchased my pervious place in 2018 and current place in 2021. I changed my USPS address on May/2021 and told county that my previous home was not my primary residence on June/2021. However, I actually moved out on October/2021. I like to sell my previous place now. If my last date of primary residence of previous place is on October/2021. It is likely that I can meet 2/5 rule.  If not, I am running out of time to sell. I have photos to prove that my previous place was not suitable for living due to remodeling. However, I don't know how to prove that to IRS

 

My timeline is like below. 

2018 May: Purchased home A

2021 March: Purchased home B

2021 May: submit re-modeling permit for home B (kitchen and bathrooms)

2021 May: Move USPS address to home B

2021 June: Submit application to home A county that home A was no longer my primary residence

2021 July: re-modeling permit for home B was approved

2021 October: moved into home B

2021 November:re-modeling permit is closed

2022 March: Rented out home A

2024 May: Plan to sell home A