DY 1718 then IB 1151 at Madrid
Oslo → Madrid → Porto
Timetable, Madrid time
19:15DY 1718 from Oslo at the gate
15:40IB 1151 to Porto leaves the gate
20 h 25 apart on the timetable, overnight
IB 1151 leaves 20 h 25 after DY 1718 arrives on the timetable: more than half a day, so not a connection we count.