Logic to calculate score by user