AA 8762 then EC 1704 at Madrid
Valencia → Madrid → Nice
Timetable, Madrid time
08:05AA 8762 from Valencia at the gate
21:20EC 1704 to Nice leaves the gate
13 h 15 apart on the timetable
EC 1704 leaves 13 h 15 after AA 8762 arrives on the timetable: more than half a day, so not a connection we count.