code: def calcMzFromMass(mass, charge):
      
      mz = (mass + (maspy.constants.atomicMassProton * charge)) / charge
      return mz
docs: Calculate the mz value of a peptide from its mass and charge.
  
      :param mass: float, exact non protonated mass
      :param charge: int, charge state
  
      :returns: mass to charge ratio of the specified charge state