TP 1014 then FR 394 at Madrid
Lisbon → Madrid → Ibiza
Timetable, Madrid time
14:05TP 1014 from Lisbon at the gate
13:30FR 394 to Ibiza leaves the gate
23 h 25 apart on the timetable, overnight
FR 394 leaves 23 h 25 after TP 1014 arrives on the timetable: more than half a day, so not a connection we count.