How earnings affect stock price

How do earnings surprises affect stock price direction?