FR 6712 then IB 1077 at Madrid
Budapest → Madrid → Valencia
Timetable, Madrid time
12:55FR 6712 from Budapest at the gate
11:15IB 1077 to Valencia leaves the gatealso AA 8610
22 h 20 apart on the timetable, overnight
IB 1077 leaves 22 h 20 after FR 6712 arrives on the timetable: more than half a day, so not a connection we count.