If I changed occupations during the tax year, should I use the one I was in on Jan. 1, 2023, the one I was in the longest, or the one I was in on Dec. 31, 2023?

I changed occupations on Oct. 27.