FR 7466 then ES 894 at Madrid
Tangier → Madrid → Caracas
Timetable, Madrid time
14:05FR 7466 from Tangier at the gate
13:40ES 894 to Caracas leaves the gate
23 h 35 apart on the timetable, overnight
ES 894 leaves 23 h 35 after FR 7466 arrives on the timetable: more than half a day, so not a connection we count.