Calculate rank when add to result