FR 5377 then FR 2760 at Madrid
Brussels Charleroi → Madrid → Bari
Timetable, Madrid time
13:35FR 5377 from Brussels Charleroi at the gate
06:25FR 2760 to Bari leaves the gate
16 h 50 apart on the timetable, overnight
FR 2760 leaves 16 h 50 after FR 5377 arrives on the timetable: more than half a day, so not a connection we count.