FR 4584 then QR 3646 at Barcelona
Porto → Barcelona → Almeria
Timetable, Barcelona time
18:35FR 4584 from Porto at the gate
12:35QR 3646 to Almeria leaves the gate
18 h apart on the timetable, overnight
QR 3646 leaves 18 h after FR 4584 arrives on the timetable: more than half a day, so not a connection we count.