BA 875 then BA 1458 at Heathrow
Bucharest → London → Edinburgh
Timetable, London time
18:05BA 875 from Bucharest at the gate
17:10BA 1458 to Edinburgh leaves the gate
23 h 05 apart on the timetable, overnight
BA 1458 leaves 23 h 05 after BA 875 arrives on the timetable: more than half a day, so not a connection we count.