carrying cost of inventory formula