EC 8306 then U2 804 at Gatwick
Milan → London → Edinburgh
Timetable, London time
14:10EC 8306 from Milan at the gate
13:00U2 804 to Edinburgh leaves the gate
22 h 50 apart on the timetable, overnight
U2 804 leaves 22 h 50 after EC 8306 arrives on the timetable: more than half a day, so not a connection we count.