Finding the quantity needed