Calculus of operations