I have to run a few calculations in my select query to get dynamic values for something like profit received on a sold inventory item. The formula goes (price minus di
(price minus di