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