FR 5483 then FR 2051 at Madrid
Porto → Madrid → Palma de Mallorca
Timetable, Madrid time
01:15FR 5483 from Porto at the gate
17:25FR 2051 to Palma de Mallorca leaves the gate
16 h 10 apart on the timetable
FR 2051 leaves 16 h 10 after FR 5483 arrives on the timetable: more than half a day, so not a connection we count.