LH 2304 then U2 7837 at Schiphol
Munich → Amsterdam → Edinburgh
Timetable, Amsterdam time
13:00LH 2304 from Munich at the gate
11:15U2 7837 to Edinburgh leaves the gate
22 h 15 apart on the timetable, overnight
U2 7837 leaves 22 h 15 after LH 2304 arrives on the timetable: more than half a day, so not a connection we count.