FR 6712 then IB 1345 at Madrid
Budapest → Madrid → Amsterdam
Timetable, Madrid time
12:55FR 6712 from Budapest at the gate
12:20IB 1345 to Amsterdam leaves the gate
23 h 25 apart on the timetable, overnight
IB 1345 leaves 23 h 25 after FR 6712 arrives on the timetable: more than half a day, so not a connection we count.