how many hours before train ticket can be booked