AA 740 then A3 1777 at Madrid
Philadelphia → Madrid → Lisbon
Timetable, Madrid time
08:55AA 740 from Philadelphia at the gatealso BA 1605, AY 3812, IB 4674
21:10A3 1777 to Lisbon leaves the gate
12 h 15 apart on the timetable
A3 1777 leaves 12 h 15 after AA 740 arrives on the timetable: more than half a day, so not a connection we count.