The calculated distance (air line) between Qax and Ağdam is approximately 99 miles respectively 159 kilometers.
By car or train, the actual journey to Ağdam is certainly longer, as only the direct route (as the crow flies) between Qax and Ağdam has been calculated here.