The calculated distance (air line) between Shamakhi and Agdzhabedy is approximately 74 miles respectively 119 kilometers.
By car or train, the actual journey to Agdzhabedy is certainly longer, as only the direct route (as the crow flies) between Shamakhi and Agdzhabedy has been calculated here.
Air line (approximately)
119 kilometers
64 nautical miles