PU 502 then FR 3876 at Madrid
Buenos Aires → Madrid → Tangier
Timetable, Madrid time
08:35PU 502 from Buenos Aires at the gate
06:10FR 3876 to Tangier leaves the gate
21 h 35 apart on the timetable, overnight
FR 3876 leaves 21 h 35 after PU 502 arrives on the timetable: more than half a day, so not a connection we count.