FR 2540 then UX 1153 at Madrid
Bucharest → Madrid → Lisbon
Timetable, Madrid time
13:55FR 2540 from Bucharest at the gate
10:25UX 1153 to Lisbon leaves the gate
20 h 30 apart on the timetable, overnight
UX 1153 leaves 20 h 30 after FR 2540 arrives on the timetable: more than half a day, so not a connection we count.