The short answer for how this needs to be done is to use a new object.
Objects in TIU are created using a mumps program that does a given
function or set of functions and returns values. The program is created
and then the link to the program is established in the TIU Document
Definition file using the "Object" data type.
Depending on how you want this to work it may take a few objects one for
entry of first value, one for mathematical interaction, one for second
value, and then finally one for the result, or you could put the left
side of the equation in a single object have it do all the parsing and
then have a second object for the results.
The above process of 2 or objects would actually be very easy, a single
object to do this would be fairly complex, depending on your programming
skills.
It is possible someone may have already setup a calculator object but I
am unaware of anyone having spent the time to do it.
If you have more questions you are welcome to contact me and I can give
you more info on how to do this.
Hope this helps some.