Calculation of drug weight