Thread:DemEyes/@comment-31797469-20190508033515/@comment-31797469-20190508181918

Your first formula was correct, but i simplified based on even/odd levels, to avoid using even-rounding.