AA 8762 then EI 5790 at Madrid
Valencia → Madrid → Dublin
Timetable, Madrid time
08:05AA 8762 from Valencia at the gate
07:45EI 5790 to Dublin leaves the gate
23 h 40 apart on the timetable, overnight
EI 5790 leaves 23 h 40 after AA 8762 arrives on the timetable: more than half a day, so not a connection we count.