FR 2674 then FR 7383 at Copenhagen
Edinburgh → Copenhagen → London Stansted
Timetable, Copenhagen time
23:00FR 2674 from Edinburgh at the gate
20:40FR 7383 to London Stansted leaves the gate
21 h 40 apart on the timetable, overnight
FR 7383 leaves 21 h 40 after FR 2674 arrives on the timetable: more than half a day, so not a connection we count.