I have a query with a couple of semi-complicated formulas. I\'ve removed a lot extra bits and boiled it down to what is relevant for my question.
DECLARE @Com