FR 9067 then IB 792 at Vienna
Bari → Vienna → Madrid
Timetable, Vienna time
17:35FR 9067 from Bari at the gate
12:20IB 792 to Madrid leaves the gate
18 h 45 apart on the timetable, overnight
IB 792 leaves 18 h 45 after FR 9067 arrives on the timetable: more than half a day, so not a connection we count.