FR 2437 then IB 797 at Madrid
Rome → Madrid → Vienna
Timetable, Madrid time
22:45FR 2437 from Rome at the gate
19:55IB 797 to Vienna leaves the gate
21 h 10 apart on the timetable, overnight
IB 797 leaves 21 h 10 after FR 2437 arrives on the timetable: more than half a day, so not a connection we count.