finished formula for tria elems