Issue #24111:fix markup pricing and margins with uom conversion

Please Excuse My Dear Aunt Sally! (parentheses, exponents, multiplication, division, addition, subtraction)