TP 1013 then FR 478 at Lisbon
Madrid → Lisbon → Edinburgh
Timetable, Lisbon time
12:30TP 1013 from Madrid at the gate
10:05FR 478 to Edinburgh leaves the gate
21 h 35 apart on the timetable, overnight
FR 478 leaves 21 h 35 after TP 1013 arrives on the timetable: more than half a day, so not a connection we count.