3O 391 then UX 1517 at Madrid
Tangier → Madrid → Munich
Timetable, Madrid time
16:403O 391 from Tangier at the gate
15:05UX 1517 to Munich leaves the gatealso EY 4377, MU 4956, AM 6957
22 h 25 apart on the timetable, overnight
UX 1517 leaves 22 h 25 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.