New TN cost computation: directly take depth into account