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