DY 4109 then DY 1718 at Oslo
Stockholm → Oslo → Madrid
Timetable, Oslo time
10:30DY 4109 from Stockholm at the gate
07:45DY 1718 to Madrid leaves the gate
21 h 15 apart on the timetable, overnight
DY 1718 leaves 21 h 15 after DY 4109 arrives on the timetable: more than half a day, so not a connection we count.