UX 1146 then IB 2296 at Madrid
Porto → Madrid → Melilla
Timetable, Madrid time
13:45UX 1146 from Porto at the gatealso AZ 2428, AM 6855, SV 6975, EY 7524, AD 7873, SK 8383
12:35IB 2296 to Melilla leaves the gatealso VY 5696
22 h 50 apart on the timetable, overnight
IB 2296 leaves 22 h 50 after UX 1146 arrives on the timetable: more than half a day, so not a connection we count.