Report capacity reserve and assign a small reliability label.

Capacity Reserve Reliability Report

capacity_reserve_reliability_report.rb
demand = 
capacity = 100
reserve = capacity - demand
status = "stable"

if reserve < 15
  status = "watch"
end

if reserve < 8
  status = "tight"
end

puts "demand=#{demand}"
puts "reserve=#{reserve}"
puts "status=#{status}"
demand = 
capacity = 100
reserve = capacity - demand
status = "stable"

if reserve < 15
  status = "watch"
end

if reserve < 8
  status = "tight"
end

puts "demand=#{demand}"
puts "reserve=#{reserve}"
puts "status=#{status}"
demand = 
capacity = 100
reserve = capacity - demand
status = "stable"

if reserve < 15
  status = "watch"
end

if reserve < 8
  status = "tight"
end

puts "demand=#{demand}"
puts "reserve=#{reserve}"
puts "status=#{status}"
capacity-reserve-report A reserve report keeps the arithmetic visible before assigning a status label.