Fix the point calculation implementation for the recommendation engine