The calculated distance (air line) between Hachiōji and Yamato is approximately 15 miles respectively 23 kilometers.
By car or train, the actual journey to Yamato is certainly longer, as only the direct route (as the crow flies) between Hachiōji and Yamato has been calculated here.