calculate angle finished