FR 10 then AT 5304 at Madrid
Dublin → Madrid → Marrakesh
Timetable, Madrid time
20:00FR 10 from Dublin at the gate
19:30AT 5304 to Marrakesh leaves the gate
23 h 30 apart on the timetable, overnight
AT 5304 leaves 23 h 30 after FR 10 arrives on the timetable: more than half a day, so not a connection we count.