IB 804 then FR 3876 at Madrid
Milan → Madrid → Tangier
Timetable, Madrid time
08:45IB 804 from Milan at the gatealso AA 8500
06:15FR 3876 to Tangier leaves the gate
21 h 30 apart on the timetable, overnight
FR 3876 leaves 21 h 30 after IB 804 arrives on the timetable: more than half a day, so not a connection we count.