DY 5509 then D8 2031 at Arlanda
Vilnius → Stockholm → Riga
Timetable, Stockholm time
16:45DY 5509 from Vilnius at the gate
14:00D8 2031 to Riga leaves the gate
21 h 15 apart on the timetable, overnight
D8 2031 leaves 21 h 15 after DY 5509 arrives on the timetable: more than half a day, so not a connection we count.