SK 1582 then SK 2679 at Arlanda
Madrid → Stockholm → Berlin
Timetable, Stockholm time
16:30SK 1582 from Madrid at the gate
16:05SK 2679 to Berlin leaves the gate
23 h 35 apart on the timetable, overnight
SK 2679 leaves 23 h 35 after SK 1582 arrives on the timetable: more than half a day, so not a connection we count.