FR 5357 then FR 348 at Madrid
Krakow → Madrid → London Stansted
Timetable, Madrid time
19:25FR 5357 from Krakow at the gate
13:15FR 348 to London Stansted leaves the gate
17 h 50 apart on the timetable, overnight
FR 348 leaves 17 h 50 after FR 5357 arrives on the timetable: more than half a day, so not a connection we count.