How to calculate the correct amount of inventory to order | Hacker News Reader