When trying to use sum function I the get wrong values while using CASE and negate values and I can\'t figure out why. (The negated value gets two times subtracted).