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