IB 1044 then IB 1857 at Madrid
Mahón → Madrid → Marrakesh
Timetable, Madrid time
22:50IB 1044 from Mahón at the gate
19:10IB 1857 to Marrakesh leaves the gate
20 h 20 apart on the timetable, overnight
IB 1857 leaves 20 h 20 after IB 1044 arrives on the timetable: more than half a day, so not a connection we count.