This function calculated the actual price, considering price, quantity and discount.