pk
Level 15
Level 15

Get your taxes done using TurboTax

@Trinhnguyen289 , generally F-1 visa allows for a five year exempt status ( from counting days present ) towards  Substantial Presence Test.  J-1 student also can be exempt, depending on what that immigration writes  on your entry visa.  Here is a reference for you to look at :  https://www.irs.gov/individuals/taxation-of-alien-individuals-by-immigration-status-j-1.

Some of the people with J-1 also can have 2 year exempt period.

The five years is on a calendar basis while the two years is on entry data basis.

From your post though I am assuming that you had a two year exempt status  and therefore  you are probably a  Resident for Tax purposes and can file your 2022 return using form 1040 and not 1040-NR.

I lack sufficient information to answer this question with any certainty.