Hi Denis,
You don't need to include the calculation in the query. Just create a calcutaled control. In the code section "before printing" you add this code:
CALC_MyCalc=MySource.Field1-MySource.Field2
//or MySelf=MySource.Field1-MySource.Field2
With MySource.QueryItemName you can use any query item in code.
Best regards,
Piet