What is the effect on COGS if the opening inventory is overvalued?