BT 5168 then IB 2296 at Madrid
Brussels → Madrid → Melilla
Timetable, Madrid time
14:35BT 5168 from Brussels at the gatealso AY 5625, AA 8515
12:35IB 2296 to Melilla leaves the gatealso VY 5696
22 h apart on the timetable, overnight
IB 2296 leaves 22 h after BT 5168 arrives on the timetable: more than half a day, so not a connection we count.