EC 1293 then TP 1017 at Madrid
Geneva → Madrid → Lisbon
Timetable, Madrid time
19:50EC 1293 from Geneva at the gate
18:00TP 1017 to Lisbon leaves the gate
22 h 10 apart on the timetable, overnight
TP 1017 leaves 22 h 10 after EC 1293 arrives on the timetable: more than half a day, so not a connection we count.