GateConnections

W6 2391 then FR 2760 at Madrid

Budapest → Madrid → Bari

Timetable, Madrid time

08:55W6 2391 from Budapest at the gate

07:15FR 2760 to Bari leaves the gate

22 h 20 apart on the timetable, overnight

FR 2760 leaves 22 h 20 after W6 2391 arrives on the timetable: more than half a day, so not a connection we count.