FR 6814 then FR 9440 at Madrid
Manchester → Madrid → Lisbon
Timetable, Madrid time
23:55FR 6814 from Manchester at the gate
16:50FR 9440 to Lisbon leaves the gate
16 h 55 apart on the timetable, overnight
FR 9440 leaves 16 h 55 after FR 6814 arrives on the timetable: more than half a day, so not a connection we count.