EK 31 then BA 990 at Heathrow
Dubai → London → Berlin
Timetable, London time
16:10EK 31 from Dubai at the gate
16:00BA 990 to Berlin leaves the gate
23 h 50 apart on the timetable, overnight
BA 990 leaves 23 h 50 after EK 31 arrives on the timetable: more than half a day, so not a connection we count.