how to calculate inflection points - Search