SK 1584 then D8 2031 at Arlanda
Málaga → Stockholm → Riga
Timetable, Stockholm time
15:35SK 1584 from Málaga at the gate
14:00D8 2031 to Riga leaves the gate
22 h 25 apart on the timetable, overnight
D8 2031 leaves 22 h 25 after SK 1584 arrives on the timetable: more than half a day, so not a connection we count.