FR 6712 then AV 2490 at Madrid
Budapest → Madrid → Lisbon
Timetable, Madrid time
12:55FR 6712 from Budapest at the gate
12:10AV 2490 to Lisbon leaves the gatealso UA 6875, AD 7271, S4 8699
23 h 15 apart on the timetable, overnight
AV 2490 leaves 23 h 15 after FR 6712 arrives on the timetable: more than half a day, so not a connection we count.