TP 1017 then FR 478 at Lisbon
Madrid → Lisbon → Edinburgh
Timetable, Lisbon time
18:25TP 1017 from Madrid at the gate
10:05FR 478 to Edinburgh leaves the gate
15 h 40 apart on the timetable, overnight
FR 478 leaves 15 h 40 after TP 1017 arrives on the timetable: more than half a day, so not a connection we count.