I am trying to fit a sigmoid curve and a 3rd-degree polynomial to my data (cost vs revenue) and then find the point of inflection/diminishing return.
This is the code