If a foreigner called A has been in india for 180 days during previous year hand as soon as he was living for foreign hw met with a accident and hospitalised for 20days and then gone back to his home country .making total stay in India 200 days.
So he will be resident for the p.y. or extra period of emergency will be excluded for that purpose.