FR 5383 then FR 8345 at Madrid
Valletta → Madrid → Krakow
Timetable, Madrid time
12:20FR 5383 from Valletta at the gate
10:10FR 8345 to Krakow leaves the gate
21 h 50 apart on the timetable, overnight
FR 8345 leaves 21 h 50 after FR 5383 arrives on the timetable: more than half a day, so not a connection we count.