DY 2030 then AY 654 at Arlanda
Riga → Stockholm → Helsinki
Timetable, Stockholm time
14:55DY 2030 from Riga at the gate
09:45AY 654 to Helsinki leaves the gate
18 h 50 apart on the timetable, overnight
AY 654 leaves 18 h 50 after DY 2030 arrives on the timetable: more than half a day, so not a connection we count.