Accounting for Trading profits: Inventory valuation models and determination of trading gains and losses