FR 2437 then W6 4402 at Madrid
Rome → Madrid → Sofia
Timetable, Madrid time
22:45FR 2437 from Rome at the gate
20:35W6 4402 to Sofia leaves the gate
21 h 50 apart on the timetable, overnight
W6 4402 leaves 21 h 50 after FR 2437 arrives on the timetable: more than half a day, so not a connection we count.