FR 4641 then AY 824 at Arlanda
Riga → Stockholm → Helsinki
Timetable, Stockholm time
14:00FR 4641 from Riga at the gate
12:25AY 824 to Helsinki leaves the gate
22 h 25 apart on the timetable, overnight
AY 824 leaves 22 h 25 after FR 4641 arrives on the timetable: more than half a day, so not a connection we count.