The atomic mass is equal to the B number of neutrons plus protons.
Atomic mass is a weighted average of the masses of an element's isotopes and is primarily determined by the number of protons and neutrons in the nucleus, since electrons have a negligible mass compared to protons and neutrons.