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