The calculated distance (air line) between Allschwil and Schaffhausen is approximately 52 miles respectively 84 kilometers.
By car or train, the actual journey to Schaffhausen is certainly longer, as only the direct route (as the crow flies) between Allschwil and Schaffhausen has been calculated here.
Air line (approximately)
84 kilometers
45 nautical miles