Calculate the protection level