BA 461 then BA 988 at Heathrow
Madrid → London → Berlin
Timetable, London time
15:20BA 461 from Madrid at the gate
15:10BA 988 to Berlin leaves the gate
23 h 50 apart on the timetable, overnight
BA 988 leaves 23 h 50 after BA 461 arrives on the timetable: more than half a day, so not a connection we count.