FR 3187 then FR 267 at Madrid
Manchester → Madrid → Valletta
Timetable, Madrid time
20:25FR 3187 from Manchester at the gate
13:00FR 267 to Valletta leaves the gate
16 h 35 apart on the timetable, overnight
FR 267 leaves 16 h 35 after FR 3187 arrives on the timetable: more than half a day, so not a connection we count.