Calculation of Medication Quantity