FR 998 then FR 3876 at Madrid
Wroclaw → Madrid → Tangier
Timetable, Madrid time
21:20FR 998 from Wroclaw at the gate
16:45FR 3876 to Tangier leaves the gate
19 h 25 apart on the timetable, overnight
FR 3876 leaves 19 h 25 after FR 998 arrives on the timetable: more than half a day, so not a connection we count.