EC 1293 then FR 8239 at Madrid
Geneva → Madrid → Porto
Timetable, Madrid time
19:30EC 1293 from Geneva at the gate
17:05FR 8239 to Porto leaves the gate
21 h 35 apart on the timetable, overnight
FR 8239 leaves 21 h 35 after EC 1293 arrives on the timetable: more than half a day, so not a connection we count.