FR 8240 then EC 1294 at Madrid
Porto → Madrid → Geneva
Timetable, Madrid time
16:30FR 8240 from Porto at the gate
14:30EC 1294 to Geneva leaves the gate
22 h apart on the timetable, overnight
EC 1294 leaves 22 h after FR 8240 arrives on the timetable: more than half a day, so not a connection we count.