SK 531 then BA 964 at Heathrow
Stockholm → London → Hamburg
Timetable, London time
12:55SK 531 from Stockholm at the gate
11:30BA 964 to Hamburg leaves the gate
22 h 35 apart on the timetable, overnight
BA 964 leaves 22 h 35 after SK 531 arrives on the timetable: more than half a day, so not a connection we count.