Calculation of the envelope weight