EC 7618 then IB 1146 at Lisbon
Nice → Lisbon → Madrid
Timetable, Lisbon time
22:55EC 7618 from Nice at the gate
20:45IB 1146 to Madrid leaves the gate
21 h 50 apart on the timetable, overnight
IB 1146 leaves 21 h 50 after EC 7618 arrives on the timetable: more than half a day, so not a connection we count.