Simplify calculaG
Remove unused rules