Calculating the amount of medication in a solution