IB 706 then IB 2296 at Madrid
Rome → Madrid → Melilla
Timetable, Madrid time
12:55IB 706 from Rome at the gate
12:35IB 2296 to Melilla leaves the gatealso VY 5696
23 h 40 apart on the timetable, overnight
IB 2296 leaves 23 h 40 after IB 706 arrives on the timetable: more than half a day, so not a connection we count.