AY 826 then AY 1251 at Helsinki
Stockholm → Helsinki → Budapest
Timetable, Helsinki time
08:35AY 826 from Stockholm at the gate
07:15AY 1251 to Budapest leaves the gate
22 h 40 apart on the timetable, overnight
AY 1251 leaves 22 h 40 after AY 826 arrives on the timetable: more than half a day, so not a connection we count.