https://www.irs.gov/individuals/international-taxpayers/substantial-presence-test
Substantial presence test | Internal Revenue Service
Understand the requirements for meeting the Substantial Presence test for the calendar year to qualify as a United States resident for tax purposes.
substantial presence testinternalrevenueservice