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