AY 414 then SK 709 at Helsinki
Kajaani → Helsinki → Stockholm
Timetable, Helsinki time
16:00AY 414 from Kajaani at the gate
15:15SK 709 to Stockholm leaves the gate
23 h 15 apart on the timetable, overnight
SK 709 leaves 23 h 15 after AY 414 arrives on the timetable: more than half a day, so not a connection we count.