 The relevant test for students is therefore the Substantial Presence Test.By the Substantial Presence Test, a person who is in the United States for at least 31 days in the current year and for a weighted total of at least 183 days in the past three calendar years (using a weighting formula) is a resident for tax purposes.However, one can exclude up to five calendar years in F status from this calculation.