The calculated distance (air line) between Shaftesbury and Milton Keynes is approximately 95 miles respectively 152 kilometers.
By car or train, the actual journey to Milton Keynes is certainly longer, as only the direct route (as the crow flies) between Shaftesbury and Milton Keynes has been calculated here.
Air line (approximately)
152 kilometers
82 nautical miles