The formula for calculating the angle of the event