FR 2067 then FR 5713 at Madrid
Ibiza → Madrid → Budapest
Timetable, Madrid time
23:50FR 2067 from Ibiza at the gate
20:10FR 5713 to Budapest leaves the gate
20 h 20 apart on the timetable, overnight
FR 5713 leaves 20 h 20 after FR 2067 arrives on the timetable: more than half a day, so not a connection we count.