how to calculate inflection point - Search