Finding the fraction of a quantity