calculate_item_priority() implemented.