SK 581 then FR 5315 at Madrid
Copenhagen → Madrid → Rome
Timetable, Madrid time
12:00SK 581 from Copenhagen at the gate
06:55FR 5315 to Rome leaves the gate
18 h 55 apart on the timetable, overnight
FR 5315 leaves 18 h 55 after SK 581 arrives on the timetable: more than half a day, so not a connection we count.