score function

Calculate the score for each horizon.