I am trying to see if I can qualify for the physical presence test or bona fide residence test in 2024. In 2024 I lived in Chile and in Sweden for a total of 337 days.

I lived in Chile from 01/04 to 07/04. Then I moved to Sweden where I live now. I arrived in Sweden on 07/28 and I live there now.