BA 867 then BA 1452 at Heathrow
Budapest → London → Edinburgh
Timetable, London time
14:15BA 867 from Budapest at the gate
13:45BA 1452 to Edinburgh leaves the gate
23 h 30 apart on the timetable, overnight
BA 1452 leaves 23 h 30 after BA 867 arrives on the timetable: more than half a day, so not a connection we count.