FR 5483 then FR 2775 at Madrid
Porto → Madrid → Palma de Mallorca
Timetable, Madrid time
08:30FR 5483 from Porto at the gate
21:15FR 2775 to Palma de Mallorca leaves the gate
12 h 45 apart on the timetable
FR 2775 leaves 12 h 45 after FR 5483 arrives on the timetable: more than half a day, so not a connection we count.