Calculate the level of protection