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