FR 5357 then LG 3838 at Madrid
Krakow → Madrid → Luxembourg
Timetable, Madrid time
22:20FR 5357 from Krakow at the gate
20:30LG 3838 to Luxembourg leaves the gate
22 h 10 apart on the timetable, overnight
LG 3838 leaves 22 h 10 after FR 5357 arrives on the timetable: more than half a day, so not a connection we count.