how to determine the degree