Finding the value of a product