AZ 58 then AA 8855 at Madrid
Rome → Madrid → Almeria
Timetable, Madrid time
10:50AZ 58 from Rome at the gate
07:35AA 8855 to Almeria leaves the gate
20 h 45 apart on the timetable, overnight
AA 8855 leaves 20 h 45 after AZ 58 arrives on the timetable: more than half a day, so not a connection we count.