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