degree calculation