If you don’t have a green card and spend at least 31 days in the U.S. during the current tax year and a total of 183 days during the last three tax years (inclusive of the current tax year), you’ll usually satisfy the physical presence test and are also treated as a Resident Alien.
Here's a detailed article:
https://turbotax.intuit.com/tax-tips/general/tax-tips-for-resident-and-non-resident-aliens/L9Mm0x1i6
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"