i figured out a formula here: https://codepen.io/ewen-lbh/pen/dyYKWVL
i figured out a formula here: https://codepen.io/ewen-lbh/pen/dyYKWVL