KL 1640 then U2 7837 at Schiphol
Torino → Amsterdam → Edinburgh
Timetable, Amsterdam time
13:35KL 1640 from Torino at the gate
11:40U2 7837 to Edinburgh leaves the gate
22 h 05 apart on the timetable, overnight
U2 7837 leaves 22 h 05 after KL 1640 arrives on the timetable: more than half a day, so not a connection we count.