Since you have left India for the purpose of employment, then you will be considered to be a resident of India if you were in India for less than 182 days (i.e. 181 days or less) in that financial year.
Assuming you left India on 18 September 2017, you can come to India for only 10 days in this financial year. You were in India from 1 April till 18 September, i.e. for 171 days. Hence to be below the threshold limit of 182 days, you can come to India for only 10 days.
The law does not specifically about considering the days you were in Indonesia. You can include it, but the Assessing Officer will dispute it.
M.Com., CA, LL.B