Calculation of Average Atomic Mass