Avinash, when calculating your tax status both the days of leaving and returning to India will be counted. These are determined from the dates stamped on your passport.