AY 1076 then DY 2614 at Helsinki
Riga → Helsinki → Stockholm
Timetable, Helsinki time
19:25AY 1076 from Riga at the gate
18:00DY 2614 to Stockholm leaves the gate
22 h 35 apart on the timetable, overnight
DY 2614 leaves 22 h 35 after AY 1076 arrives on the timetable: more than half a day, so not a connection we count.