FR 2628 then FR 5713 at Madrid
London Stansted → Madrid → Budapest
Timetable, Madrid time
23:20FR 2628 from London Stansted at the gate
12:30FR 5713 to Budapest leaves the gate
13 h 10 apart on the timetable, overnight
FR 5713 leaves 13 h 10 after FR 2628 arrives on the timetable: more than half a day, so not a connection we count.