SK 1898 then D8 2031 at Arlanda
Rome → Stockholm → Riga
Timetable, Stockholm time
16:10SK 1898 from Rome at the gate
14:00D8 2031 to Riga leaves the gate
21 h 50 apart on the timetable, overnight
D8 2031 leaves 21 h 50 after SK 1898 arrives on the timetable: more than half a day, so not a connection we count.