method for finding total mass of a peptide