Cost of inflation in inventory theoretical models