FR 2540 then SK 582 at Madrid
Bucharest → Madrid → Copenhagen
Timetable, Madrid time
13:55FR 2540 from Bucharest at the gate
12:50SK 582 to Copenhagen leaves the gate
22 h 55 apart on the timetable, overnight
SK 582 leaves 22 h 55 after FR 2540 arrives on the timetable: more than half a day, so not a connection we count.