Using the Newsvendor method to calculate the optimal quantity of inventory | Hacker News Reader