calculating degrees