A mockup with the process to "catch" a length propriety of an edge.
For maximum flexibility, the reference can ve anything that you can extract a number to assign to an expression to make a formula.
The "another level feature" are make an: if, or, ..... basic programming formulas in the formula editor.