FR 3008 then AT 973 at Madrid
Milan → Madrid → Casablanca
Timetable, Madrid time
19:50FR 3008 from Milan at the gate
13:00AT 973 to Casablanca leaves the gate
17 h 10 apart on the timetable, overnight
AT 973 leaves 17 h 10 after FR 3008 arrives on the timetable: more than half a day, so not a connection we count.