add group calculate rules