FR 5712 then EC 7652 at Madrid
Budapest → Madrid → Lisbon
Timetable, Madrid time
09:05FR 5712 from Budapest at the gate
22:10EC 7652 to Lisbon leaves the gate
13 h 05 apart on the timetable
EC 7652 leaves 13 h 05 after FR 5712 arrives on the timetable: more than half a day, so not a connection we count.