BA 977 then BA 1450 at Heathrow
Berlin → London → Edinburgh
Timetable, London time
13:20BA 977 from Berlin at the gate
12:50BA 1450 to Edinburgh leaves the gate
23 h 30 apart on the timetable, overnight
BA 1450 leaves 23 h 30 after BA 977 arrives on the timetable: more than half a day, so not a connection we count.