BT 301 then AY 1027 at Helsinki
Riga → Helsinki → Tallinn
Timetable, Helsinki time
08:20BT 301 from Riga at the gate
20:45AY 1027 to Tallinn leaves the gate
12 h 25 apart on the timetable
AY 1027 leaves 12 h 25 after BT 301 arrives on the timetable: more than half a day, so not a connection we count.