3O 391 then FR 2629 at Madrid
Tangier → Madrid → London Stansted
Timetable, Madrid time
16:403O 391 from Tangier at the gate
14:45FR 2629 to London Stansted leaves the gate
22 h 05 apart on the timetable, overnight
FR 2629 leaves 22 h 05 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.