We are glad that you got a solution and found the forum helpful and friendly.
Sometimes tne "experts" disagree over the choice of the "accepted" solution. I suggest you select FrelanceReihhard's answer, not mine, as the solution to your question. He provided a correct set of formulas and a working program.
... View more