https://plotly.pythonprogramminghelp.com/how-to-quickly-profit-maximisation-problem-pmp/