BA 1487 then BA 870 at Heathrow
Glasgow → London → Budapest
Timetable, London time
20:05BA 1487 from Glasgow at the gate
19:30BA 870 to Budapest leaves the gate
23 h 25 apart on the timetable, overnight
BA 870 leaves 23 h 25 after BA 1487 arrives on the timetable: more than half a day, so not a connection we count.