U2 8324 then U2 804 at Gatwick
Rome → London → Edinburgh
Timetable, London time
13:05U2 8324 from Rome at the gate
13:00U2 804 to Edinburgh leaves the gate
23 h 55 apart on the timetable, overnight
U2 804 leaves 23 h 55 after U2 8324 arrives on the timetable: more than half a day, so not a connection we count.