Pitch and angle calculator