The U.S. resident formula
Unlike the factual test in Canada that determines residency, the U.S. taxes non-U.S. citizens based on a very mechanical formula. The calculation is thus: You take all the days you have lived in the United States during the current year, a third of the days you stayed...