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