IB 2295 then FR 572 at Madrid
Melilla → Madrid → Porto
Timetable, Madrid time
16:55IB 2295 from Melilla at the gatealso VY 5695, QR 6551
11:15FR 572 to Porto leaves the gate
18 h 20 apart on the timetable, overnight
FR 572 leaves 18 h 20 after IB 2295 arrives on the timetable: more than half a day, so not a connection we count.