AA 8762 then IB 1145 at Madrid
Valencia → Madrid → Lisbon
Timetable, Madrid time
07:10AA 8762 from Valencia at the gate
19:40IB 1145 to Lisbon leaves the gatealso LA 1670, VY 5748
12 h 30 apart on the timetable
IB 1145 leaves 12 h 30 after AA 8762 arrives on the timetable: more than half a day, so not a connection we count.