The calculated distance (air line) between Kostanjevica na Krki and Koper is approximately 84 miles respectively 136 kilometers.
By car or train, the actual journey to Koper is certainly longer, as only the direct route (as the crow flies) between Kostanjevica na Krki and Koper has been calculated here.
Air line (approximately)
136 kilometers
73 nautical miles