W4 2031 then FR 5872 at Fiumicino
Krakow → Rome → Gdansk
Timetable, Rome time
10:30W4 2031 from Krakow at the gate
09:20FR 5872 to Gdansk leaves the gate
22 h 50 apart on the timetable, overnight
FR 5872 leaves 22 h 50 after W4 2031 arrives on the timetable: more than half a day, so not a connection we count.