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