U2 8072 then EC 8631 at Gatwick
Málaga → London → Berlin
Timetable, London time
16:00U2 8072 from Málaga at the gate
14:35EC 8631 to Berlin leaves the gate
22 h 35 apart on the timetable, overnight
EC 8631 leaves 22 h 35 after U2 8072 arrives on the timetable: more than half a day, so not a connection we count.