EC 1703 then EC 1294 at Madrid
Nice → Madrid → Geneva
Timetable, Madrid time
20:40EC 1703 from Nice at the gate
20:10EC 1294 to Geneva leaves the gate
23 h 30 apart on the timetable, overnight
EC 1294 leaves 23 h 30 after EC 1703 arrives on the timetable: more than half a day, so not a connection we count.