FR 5712 then FR 5993 at Madrid
Budapest → Madrid → London Stansted
Timetable, Madrid time
09:05FR 5712 from Budapest at the gate
21:40FR 5993 to London Stansted leaves the gate
12 h 35 apart on the timetable
FR 5993 leaves 12 h 35 after FR 5712 arrives on the timetable: more than half a day, so not a connection we count.