TK 1857 then FR 8345 at Madrid
Istanbul → Madrid → Krakow
Timetable, Madrid time
10:25TK 1857 from Istanbul at the gate
10:10FR 8345 to Krakow leaves the gate
23 h 45 apart on the timetable, overnight
FR 8345 leaves 23 h 45 after TK 1857 arrives on the timetable: more than half a day, so not a connection we count.