FR 403 then FR 5482 at Madrid
Palma de Mallorca → Madrid → Porto
Timetable, Madrid time
23:35FR 403 from Palma de Mallorca at the gate
22:15FR 5482 to Porto leaves the gate
22 h 40 apart on the timetable, overnight
FR 5482 leaves 22 h 40 after FR 403 arrives on the timetable: more than half a day, so not a connection we count.