FR 998 then FR 6612 at Madrid
Wroclaw → Madrid → Rabat
Timetable, Madrid time
21:20FR 998 from Wroclaw at the gate
17:10FR 6612 to Rabat leaves the gate
19 h 50 apart on the timetable, overnight
FR 6612 leaves 19 h 50 after FR 998 arrives on the timetable: more than half a day, so not a connection we count.