Cost of Goods Sold / Average Inventory
If you divide this amount by 365 you can calculate the average number of days it takes to sell your inventory.