You use mathematical operators in the $CALCULATE command that instructs Document Factory to perform a mathematical calculation on the specified keywords.