How is the residential status of an individual determined for income tax