FR 946 then IB 792 at Vienna
Krakow → Vienna → Madrid
Timetable, Vienna time
13:20FR 946 from Krakow at the gate
12:20IB 792 to Madrid leaves the gate
23 h apart on the timetable, overnight
IB 792 leaves 23 h after FR 946 arrives on the timetable: more than half a day, so not a connection we count.