FR 5494 then FR 267 at Madrid
Milan Bergamo → Madrid → Valletta
Timetable, Madrid time
15:20FR 5494 from Milan Bergamo at the gate
10:00FR 267 to Valletta leaves the gate
18 h 40 apart on the timetable, overnight
FR 267 leaves 18 h 40 after FR 5494 arrives on the timetable: more than half a day, so not a connection we count.