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