FR 403 then TP 1017 at Madrid
Palma de Mallorca → Madrid → Lisbon
Timetable, Madrid time
20:30FR 403 from Palma de Mallorca at the gate
18:00TP 1017 to Lisbon leaves the gate
21 h 30 apart on the timetable, overnight
TP 1017 leaves 21 h 30 after FR 403 arrives on the timetable: more than half a day, so not a connection we count.