endpoint to calculate scores