Capacity reports are easier to read when raw demand is paired with remaining reserve and a stable/watch/tight label. The selector changes only the demand value.

Program

Play the program to choose demand and inspect the reserve label.

capacity_reserve_reliability_report.dart
String capacityLabel(int reserve) {
  if (reserve >= 20) {
    return 'stable';
  }
  if (reserve >= 10) {
    return 'watch';
  }
  return 'tight';
}

void main() {
  var demand = ;
  var capacity = 100;
  var reserve = capacity - demand;
  var status = capacityLabel(reserve);
  var line = 'demand=$demand reserve=$reserve status=$status';
  print(line);
}
String capacityLabel(int reserve) {
  if (reserve >= 20) {
    return 'stable';
  }
  if (reserve >= 10) {
    return 'watch';
  }
  return 'tight';
}

void main() {
  var demand = ;
  var capacity = 100;
  var reserve = capacity - demand;
  var status = capacityLabel(reserve);
  var line = 'demand=$demand reserve=$reserve status=$status';
  print(line);
}
String capacityLabel(int reserve) {
  if (reserve >= 20) {
    return 'stable';
  }
  if (reserve >= 10) {
    return 'watch';
  }
  return 'tight';
}

void main() {
  var demand = ;
  var capacity = 100;
  var reserve = capacity - demand;
  var status = capacityLabel(reserve);
  var line = 'demand=$demand reserve=$reserve status=$status';
  print(line);
}
reserve `capacity - demand` turns the raw request level into remaining headroom.
threshold labels `capacityLabel` maps reserve into `stable`, `watch`, or `tight`.
report row The output keeps demand, reserve, and status in one row.