As per AS-2, inventory is to be valued at