FB 471 then AZ 2419 at Madrid
Sofia → Madrid → Porto
Timetable, Madrid time
17:55FB 471 from Sofia at the gate
15:00AZ 2419 to Porto leaves the gatealso SV 4731, DL 6757, AM 6852, EY 7516, AD 7867, SK 8375, RO 9455
21 h 05 apart on the timetable, overnight
AZ 2419 leaves 21 h 05 after FB 471 arrives on the timetable: more than half a day, so not a connection we count.