AA 8710 then EC 1294 at Madrid
Marrakesh → Madrid → Geneva
Timetable, Madrid time
16:40AA 8710 from Marrakesh at the gate
14:30EC 1294 to Geneva leaves the gate
21 h 50 apart on the timetable, overnight
EC 1294 leaves 21 h 50 after AA 8710 arrives on the timetable: more than half a day, so not a connection we count.