3O 391 then EC 1294 at Madrid
Tangier → Madrid → Geneva
Timetable, Madrid time
16:403O 391 from Tangier 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 3O 391 arrives on the timetable: more than half a day, so not a connection we count.