BA 465 then BA 940 at Heathrow
Madrid → London → Düsseldorf
Timetable, London time
19:25BA 465 from Madrid at the gate
19:15BA 940 to Düsseldorf leaves the gate
23 h 50 apart on the timetable, overnight
BA 940 leaves 23 h 50 after BA 465 arrives on the timetable: more than half a day, so not a connection we count.