IB 817 then U2 3324 at Copenhagen
Madrid → Copenhagen → Edinburgh
Timetable, Copenhagen time
14:45IB 817 from Madrid at the gate
14:30U2 3324 to Edinburgh leaves the gate
23 h 45 apart on the timetable, overnight
U2 3324 leaves 23 h 45 after IB 817 arrives on the timetable: more than half a day, so not a connection we count.