BA 871 then BA 131 at Heathrow
Budapest → London → Bengaluru
Timetable, London time
09:40BA 871 from Budapest at the gate
09:25BA 131 to Bengaluru leaves the gate
23 h 45 apart on the timetable, overnight
BA 131 leaves 23 h 45 after BA 871 arrives on the timetable: more than half a day, so not a connection we count.