FR 4641 then AY 654 at Arlanda
Riga → Stockholm → Helsinki
Timetable, Stockholm time
15:35FR 4641 from Riga at the gate
09:45AY 654 to Helsinki leaves the gate
18 h 10 apart on the timetable, overnight
AY 654 leaves 18 h 10 after FR 4641 arrives on the timetable: more than half a day, so not a connection we count.