I2 1852 then IB 2296 at Madrid
Marrakesh → Madrid → Melilla
Timetable, Madrid time
15:30I2 1852 from Marrakesh at the gatealso IB 1852
12:35IB 2296 to Melilla leaves the gatealso VY 5696
21 h 05 apart on the timetable, overnight
IB 2296 leaves 21 h 05 after I2 1852 arrives on the timetable: more than half a day, so not a connection we count.