FB 471 then IB 1151 at Madrid
Sofia → Madrid → Porto
Timetable, Madrid time
16:20FB 471 from Sofia at the gate
15:40IB 1151 to Porto leaves the gatealso LA 1728, AT 5483, VY 5763, QR 6931, PC 7951, AA 8678
23 h 20 apart on the timetable, overnight
IB 1151 leaves 23 h 20 after FB 471 arrives on the timetable: more than half a day, so not a connection we count.