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