FB 471 then FR 2436 at Madrid
Sofia → Madrid → Rome
Timetable, Madrid time
16:20FB 471 from Sofia at the gate
14:25FR 2436 to Rome leaves the gate
22 h 05 apart on the timetable, overnight
FR 2436 leaves 22 h 05 after FB 471 arrives on the timetable: more than half a day, so not a connection we count.