if it is RLWL and a big junction where charting can be prepared, the chart will be prepared 4hrs before departure from that station.
and it is clear that for a long journey many big junctions come under.
So for station Y if it is a charting station then the chart will be prepared 4hrs before the departure.