AY 811 then FR 4640 at Arlanda
Helsinki → Stockholm → Riga
Timetable, Stockholm time
13:35AY 811 from Helsinki at the gate
12:50FR 4640 to Riga leaves the gate
23 h 15 apart on the timetable, overnight
FR 4640 leaves 23 h 15 after AY 811 arrives on the timetable: more than half a day, so not a connection we count.