EC 1703 then IB 7645 at Madrid
Nice → Madrid → Casablanca
Timetable, Madrid time
20:40EC 1703 from Nice at the gate
13:00IB 7645 to Casablanca leaves the gate
16 h 20 apart on the timetable, overnight
IB 7645 leaves 16 h 20 after EC 1703 arrives on the timetable: more than half a day, so not a connection we count.