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