The lower of cost or market rule may be applied by comparing the market value of the inventory to the cost of the inventory based on: