FR 8991 then FR 5713 at Madrid
Verona → Madrid → Budapest
Timetable, Madrid time
15:15FR 8991 from Verona at the gate
09:40FR 5713 to Budapest leaves the gate
18 h 25 apart on the timetable, overnight
FR 5713 leaves 18 h 25 after FR 8991 arrives on the timetable: more than half a day, so not a connection we count.