Figure 1: Calculating Cost Using a Decision Tree.