click to
      try demo

      click to see underlying formula - part 1
      (formula below drawing -> scroll down)