I am working on H1 from August 2017 and will be returning to home country in Februay 2017. Do I need to file returns for FY 2017?

If yes  then when should I file my returns? 

Do I need to file the return for FY2018 as well, since I will be getting 3 pay checks after Dec 2017?

Will I get returns ? When