Deductions & credits

Hello, I am sure this has been answered many times already but sorry for being not very intelligent and I really need to a clear answer before I make a big big mistake. So please excuse my question here.

 

I bought my current home in Nov 6th, 2020. I lost my job in March 2022 and have received the Unemployment benefits July 2022. I finally found a job and I need to relocate by October 1, 2022. So I am 35 days short from the two year requirements. I guess I can delay the relocation until October 6th, just to make this calculation simpler. So let's say I've lived in my current home 23 months, and move to a different state which is 400 miles away. Will I need to pay any capital gain taxes? The price I bought my home was $320k and it is on the market for $405k. Thank you in advance for those who take time to help me out!