Calculations can give trouble when the data elements being operated on are not of the correct format. The RenderAsNumeric function will address that problem.
XpressDox Help Center
Use Google To Find Help Fast, e.g. xpressdox choosefromlist
Press Getting Started in the XpressDox toolbar for basic template development
Watch the tutorial videos
View command help from list of commands
Press F1 for help on a command in the Command Editor
Email email@example.com for assistance