You can book your train ticket before 120 days from the  scheduled departure of the train. For some of the inter-city day trains, the  advanced reservation system is less than 120 days.