FB 471 then FR 5121 at Madrid
Sofia → Madrid → Milan Bergamo
Timetable, Madrid time
16:20FB 471 from Sofia at the gate
12:40FR 5121 to Milan Bergamo leaves the gate
20 h 20 apart on the timetable, overnight
FR 5121 leaves 20 h 20 after FB 471 arrives on the timetable: more than half a day, so not a connection we count.