Compute the mass of a peptide