How is resident or non-resident status relevant in income tax laws?