FR 6712 then AV 6518 at Madrid
Budapest → Madrid → Frankfurt am Main
Timetable, Madrid time
18:10FR 6712 from Budapest at the gate
13:20AV 6518 to Frankfurt am Main leaves the gate
19 h 10 apart on the timetable, overnight
AV 6518 leaves 19 h 10 after FR 6712 arrives on the timetable: more than half a day, so not a connection we count.