Days of inventory = (average inventory value ÷ cost of goods sold) × number of days in the period.
Example: $20,000 average inventory and $120,000 annual COGS → (20000÷120000)×365 ≈ 61 days of inventory.