calcPredictions function

Calculates the predictions