UX 56 then IB 2296 at Madrid
Tocumen → Madrid → Melilla
Timetable, Madrid time
13:05UX 56 from Tocumen at the gatealso MU 4993, EY 7511, HU 8226
12:35IB 2296 to Melilla leaves the gatealso VY 5696
23 h 30 apart on the timetable, overnight
IB 2296 leaves 23 h 30 after UX 56 arrives on the timetable: more than half a day, so not a connection we count.