The relevance of the work lies in the fact that the leaders of various enterprises always have a goal: increasing profits and reducing costs. In this report, I propose when planning profits based on the probability of selling goods at a certain price. The probability is formed from the results of sales of products for several previous periods. Thus it is possible to estimate the future profit of the company. The purpose of the study is to increase the efficiency of the enterprise based on the variation of prices for products. The introduction justifies the relevance of the selected topic of the report, provides examples of the literature, where the method of optimizing an enterprise was used with the help of production functions, on the basis of which a mathematical model was built for the enterprise I selected. In the second part, a mathematical model of enterprise profit is built. The third part describes the data of a specific small enterprise, compiles a reduced production function and describes the task