The calculated distance (air line) between Affoltern am Albis and Zürich is approximately 8 miles respectively 12 kilometers.
By car or train, the actual journey to Zürich is certainly longer, as only the direct route (as the crow flies) between Affoltern am Albis and Zürich has been calculated here.
Air line (approximately)
12 kilometers
7 nautical miles