FR 6712 then FR 5301 at Madrid
Budapest → Madrid → Luxembourg
Timetable, Madrid time
09:30FR 6712 from Budapest at the gate
07:15FR 5301 to Luxembourg leaves the gate
21 h 45 apart on the timetable, overnight
FR 5301 leaves 21 h 45 after FR 6712 arrives on the timetable: more than half a day, so not a connection we count.