how to calculate decision tree - Search