Question: how to calculate months supply of inventory?
Answer: Identify the number of active listings on the market within a certain time period. ... 
Identify how many homes were sold or pending sale during that same time period.
Divide the active listings number by the sales and pending sales to find months of supply.