The tax rules for determining whether a foreign national is a resident alien or a nonresident alien are tied to the foreign national’s U.S. immigration status and U.S. presence. Determining the date such a payee earns and ends resident alien status is far from easy.