calculate user score