FR 6409 then FR 607 at Madrid
Sofia → Madrid → Copenhagen
Timetable, Madrid time
20:10FR 6409 from Sofia at the gate
10:15FR 607 to Copenhagen leaves the gate
14 h 05 apart on the timetable, overnight
FR 607 leaves 14 h 05 after FR 6409 arrives on the timetable: more than half a day, so not a connection we count.