The rules are finally correctly calculated