FR 3877 then IB 739 at Madrid
Tangier → Madrid → Amsterdam
Timetable, Madrid time
22:35FR 3877 from Tangier at the gate
19:35IB 739 to Amsterdam leaves the gate
21 h apart on the timetable, overnight
IB 739 leaves 21 h after FR 3877 arrives on the timetable: more than half a day, so not a connection we count.