mod-calculating-rule