FR 3877 then IB 1315 at Madrid
Tangier → Madrid → Munich
Timetable, Madrid time
22:35FR 3877 from Tangier at the gate
19:55IB 1315 to Munich leaves the gatealso LA 1564, VY 5246
21 h 20 apart on the timetable, overnight
IB 1315 leaves 21 h 20 after FR 3877 arrives on the timetable: more than half a day, so not a connection we count.