is there a way to subtract a function from another function,

or

subtract one sumed field from another sumed field (I beleive that this may be possible with a SQL statement)

Any recommendations would be great

Pinkpanter2070