FR 6723 then FR 997 at Madrid
Marrakesh → Madrid → Wroclaw
Timetable, Madrid time
11:20FR 6723 from Marrakesh at the gate
11:05FR 997 to Wroclaw leaves the gate
23 h 45 apart on the timetable, overnight
FR 997 leaves 23 h 45 after FR 6723 arrives on the timetable: more than half a day, so not a connection we count.