Tax resident rule

hello, I’m working for an IT company in India who has sent me ( Temporary transfer with local contract) to EU for 2 yrs ( from Dec 2015) , Now my question is I’ll be finishing my two year tenure in DEC 2017 and will return back to India, so will I’ll be treated as tax resident for India in 2017 ?and I need to pay tax in for entire 2017 in India ? as i saw the below rule and is 180 days rule is applicable for me ? I came to know below statement in tax guide, is that applicable for me or the 60 days rule will be applicable for me when I’ll return back to India. You are considered an Indian resident for a financial year: •when you are in India for at least 6 months (182 days to be exact) during the financial year •you are in India for 2 months (60 days) for the year in the previous year AND have lived for one whole year (365 days) in the last four years If you are an Indian Citizen working abroad or a member of a crew on an Indian ship only the first condition is available to you – which means you are a resident when you spend at least 182 days in India. The same is applicable to a PIO who is on a visit to India. The second condition is not applicable to these individuals. Regards Roy