FR 9601 then IB 7642 at Madrid
Rome → Madrid → Casablanca
Timetable, Madrid time
19:50FR 9601 from Rome at the gate
19:05IB 7642 to Casablanca leaves the gate
23 h 15 apart on the timetable, overnight
IB 7642 leaves 23 h 15 after FR 9601 arrives on the timetable: more than half a day, so not a connection we count.