FR 573 then FB 472 at Madrid
Porto → Madrid → Sofia
Timetable, Madrid time
22:05FR 573 from Porto at the gate
13:55FB 472 to Sofia leaves the gate
15 h 50 apart on the timetable, overnight
FB 472 leaves 15 h 50 after FR 573 arrives on the timetable: more than half a day, so not a connection we count.