<!-- canonical: efficientnewlanguage.org/ai/examples/968-the-standby-light-was-on-for-twenty-two-hours | ai_layer_version: 0.1.0 | updated: 2026-09-22 -->

# Example 968 — The standby light was on for twenty two hours

`the_standby_light_was_on_for_twenty_two_hours.eml` - A household compares a television's hundred watts in use with its five watts on standby, calls the standby a twentieth and not worth a switch, and the meter says the standby is more than half of what the set uses. What five watts for twenty-two hours adds up to is computed below.

## EML

```eml
# Self-authored for the EML case corpus (no external origin). A household
# compares a television's hundred watts in use with its five watts on standby,
# calls the standby a twentieth and not worth a switch, and the meter says the
# standby is more than half of what the set uses. What five watts for twenty-two
# hours adds up to is computed below.
#
# The reasoning is careful. Both wattages are right; five is a twentieth of a
# hundred; standby is genuinely the low-power state; and the intent was exactly
# 'is the standby worth switching off'.
#
# Energy is power times time, and the standby runs for the twenty-two hours a
# day the set is not watched, so five watts for twenty-two hours is 110 watt-
# hours against 200 for two hours of viewing - fifty-five percent of the
# viewing energy, not five - and twenty such devices in a house are sixty
# watts around the clock, over five hundred kilowatt-hours a year.

100 => watts_in_use
5 => watts_on_standby
2 => hours_in_use_per_day
22 => hours_on_standby_per_day
20 => standby_devices_in_the_house
3 => watts_per_device_on_standby
365 => days_in_a_year
30 => cents_per_kwh

int(watts_on_standby * 10000 / watts_in_use) => standby_power_as_a_share_of_use_per_myriad
watts_in_use * hours_in_use_per_day => viewing_energy_wh_per_day
watts_on_standby * hours_on_standby_per_day => standby_energy_wh_per_day
int(standby_energy_wh_per_day * 10000 / viewing_energy_wh_per_day) => standby_energy_as_a_share_of_viewing_per_myriad
viewing_energy_wh_per_day + standby_energy_wh_per_day => total_energy_wh_per_day
int(standby_energy_wh_per_day * 10000 / total_energy_wh_per_day) => standby_share_of_the_total_per_myriad
int(standby_energy_wh_per_day * days_in_a_year / 1000) => standby_kwh_per_year_one_set
int(hours_on_standby_per_day * 10000 / hours_in_use_per_day) => hours_ratio_standby_to_use_per_myriad

standby_devices_in_the_house * watts_per_device_on_standby => house_standby_watts
int(house_standby_watts * 24 * days_in_a_year / 1000) => house_standby_kwh_per_year
int(house_standby_kwh_per_year * cents_per_kwh / 100) => house_standby_cost_per_year

"television in use               : " + str(watts_in_use) + " W for " + str(hours_in_use_per_day) + " hours a day, " + str(viewing_energy_wh_per_day) + " Wh" ^0
"television on standby           : " + str(watts_on_standby) + " W for " + str(hours_on_standby_per_day) + " hours a day, " + str(standby_energy_wh_per_day) + " Wh" ^0
"standby power vs use power      : " + str(standby_power_as_a_share_of_use_per_myriad) + " per ten thousand, a twentieth" ^0
"standby hours vs use hours      : " + str(hours_ratio_standby_to_use_per_myriad) + " per ten thousand, eleven to one" ^0
"standby energy vs viewing energy : " + str(standby_energy_as_a_share_of_viewing_per_myriad) + " per ten thousand" ^0
"standby share of the set's total : " + str(standby_share_of_the_total_per_myriad) + " per ten thousand" ^0
"standby, one set, per year      : " + str(standby_kwh_per_year_one_set) + " kWh" ^0
"" ^0
"the house                       : " + str(standby_devices_in_the_house) + " devices at " + str(watts_per_device_on_standby) + " W, " + str(house_standby_watts) + " W around the clock" ^0
"house standby per year          : " + str(house_standby_kwh_per_year) + " kWh, " + str(house_standby_cost_per_year) + " at " + str(cents_per_kwh) + " cents per kWh" ^0
"" ^0

# ---- what the household verified ----

"the twentieth reasoning" ^0
"  in use : " + str(watts_in_use) + " W, right" ^0
"  standby : " + str(watts_on_standby) + " W, right" ^0
"  ratio : " + str(standby_power_as_a_share_of_use_per_myriad) + " per ten thousand, a twentieth" ^0
"  intent : is the standby worth switching off" ^0
"  facts wrong : 0" ^0
"  verdict : A TWENTIETH IS NOT WORTH A SWITCH" ^0
"" ^0
"  comparing the two wattages is the part done right here, and" ^0
"  it is why, for any single hour, standby really is a" ^0
"  twentieth of viewing" ^0
"" ^0

# ---- what five watts for twenty-two hours adds up to ----

"energy is power times time" ^0
"  what the ratio compared : power, one hour against one hour" ^0
"  what the meter counts : power times hours, and the hours are" ^0
"    " + str(hours_on_standby_per_day) + " against " + str(hours_in_use_per_day) ^0
"  a twentieth of the power for eleven times the hours : eleven" ^0
"    twentieths, " + str(standby_energy_as_a_share_of_viewing_per_myriad) + " per ten thousand of the viewing energy" ^0
"  what a small number does over a long time : becomes a" ^0
"    large one, " + str(standby_kwh_per_year_one_set) + " kWh a year from a five-watt light" ^0
"  the house : " + str(house_standby_watts) + " W that never switches off, " + str(house_standby_kwh_per_year) + " kWh a year" ^0
"" ^0

# ---- what the household got ----

"the bill" ^0
"  believed : standby negligible, a twentieth" ^0
"  actual : " + str(standby_share_of_the_total_per_myriad) + " per ten thousand of the set's energy is standby" ^0
"  is either wattage wrong : no" ^0
"  is the power ratio the energy ratio : no; the standby's" ^0
"    hours are its whole argument, and the ratio left them out" ^0
"" ^0

# ---- null control ----

# The same comparison made in watt-hours per day instead of in watts.
500 => nc_standby_share_read_from_power_per_myriad
5500 => nc_standby_share_read_from_energy_per_myriad
5000 => nc_share_the_hours_add_per_myriad

"null control - compare energy, not power" ^0
"  standby share, read from power : " + str(nc_standby_share_read_from_power_per_myriad) + " per ten thousand" ^0
"  standby share, read from energy : " + str(nc_standby_share_read_from_energy_per_myriad) + " per ten thousand" ^0
"  share the hours add : " + str(nc_share_the_hours_add_per_myriad) + " per ten thousand" ^0
"  no wattage changed; the hours each wattage runs for were" ^0
"  multiplied in before comparing" ^0
"" ^0

# ---- the rule ----

"what a correct comparison of two wattages guarantees" ^0
"  in any one hour, standby is a twentieth of viewing : exactly" ^0
"  standby is a twentieth of the energy : not addressed; standby" ^0
"    runs " + str(hours_on_standby_per_day) + " hours to viewing's " + str(hours_in_use_per_day) + ", so it is " + str(standby_energy_as_a_share_of_viewing_per_myriad) + " per ten thousand of" ^0
"    the viewing energy and " + str(standby_share_of_the_total_per_myriad) + " per ten thousand of the set's total" ^0
"" ^0

"a watt is a rate and a bill is a total; the small rate that never stops is" ^0
"the one the meter remembers, because the meter multiplies by the hours and" ^0
"the ratio forgot to" ^0
"" ^0

"Five watts is a twentieth of a hundred - the ratio is right. But energy is" ^0
"power times time, and the standby runs " + str(hours_on_standby_per_day) + " hours to viewing's " + str(hours_in_use_per_day) + ": " + str(standby_energy_wh_per_day) + " Wh against" ^0
"" + str(viewing_energy_wh_per_day) + " a day, " + str(standby_share_of_the_total_per_myriad) + " per ten thousand of the set's energy, and " + str(house_standby_kwh_per_year) + " kWh a year across" ^0
"the house's " + str(standby_devices_in_the_house) + " standby lights, until the hours are multiplied in before the ratio is taken." ^0
```

## Python (deterministic transpilation)

```python
watts_in_use = 100
watts_on_standby = 5
hours_in_use_per_day = 2
hours_on_standby_per_day = 22
standby_devices_in_the_house = 20
watts_per_device_on_standby = 3
days_in_a_year = 365
cents_per_kwh = 30
standby_power_as_a_share_of_use_per_myriad = int(watts_on_standby * 10000 / watts_in_use)
viewing_energy_wh_per_day = watts_in_use * hours_in_use_per_day
standby_energy_wh_per_day = watts_on_standby * hours_on_standby_per_day
standby_energy_as_a_share_of_viewing_per_myriad = int(standby_energy_wh_per_day * 10000 / viewing_energy_wh_per_day)
total_energy_wh_per_day = viewing_energy_wh_per_day + standby_energy_wh_per_day
standby_share_of_the_total_per_myriad = int(standby_energy_wh_per_day * 10000 / total_energy_wh_per_day)
standby_kwh_per_year_one_set = int(standby_energy_wh_per_day * days_in_a_year / 1000)
hours_ratio_standby_to_use_per_myriad = int(hours_on_standby_per_day * 10000 / hours_in_use_per_day)
house_standby_watts = standby_devices_in_the_house * watts_per_device_on_standby
house_standby_kwh_per_year = int(house_standby_watts * 24 * days_in_a_year / 1000)
house_standby_cost_per_year = int(house_standby_kwh_per_year * cents_per_kwh / 100)
print("television in use               : " + str(watts_in_use) + " W for " + str(hours_in_use_per_day) + " hours a day, " + str(viewing_energy_wh_per_day) + " Wh")
print("television on standby           : " + str(watts_on_standby) + " W for " + str(hours_on_standby_per_day) + " hours a day, " + str(standby_energy_wh_per_day) + " Wh")
print("standby power vs use power      : " + str(standby_power_as_a_share_of_use_per_myriad) + " per ten thousand, a twentieth")
print("standby hours vs use hours      : " + str(hours_ratio_standby_to_use_per_myriad) + " per ten thousand, eleven to one")
print("standby energy vs viewing energy : " + str(standby_energy_as_a_share_of_viewing_per_myriad) + " per ten thousand")
print("standby share of the set's total : " + str(standby_share_of_the_total_per_myriad) + " per ten thousand")
print("standby, one set, per year      : " + str(standby_kwh_per_year_one_set) + " kWh")
print("")
print("the house                       : " + str(standby_devices_in_the_house) + " devices at " + str(watts_per_device_on_standby) + " W, " + str(house_standby_watts) + " W around the clock")
print("house standby per year          : " + str(house_standby_kwh_per_year) + " kWh, " + str(house_standby_cost_per_year) + " at " + str(cents_per_kwh) + " cents per kWh")
print("")
print("the twentieth reasoning")
print("  in use : " + str(watts_in_use) + " W, right")
print("  standby : " + str(watts_on_standby) + " W, right")
print("  ratio : " + str(standby_power_as_a_share_of_use_per_myriad) + " per ten thousand, a twentieth")
print("  intent : is the standby worth switching off")
print("  facts wrong : 0")
print("  verdict : A TWENTIETH IS NOT WORTH A SWITCH")
print("")
print("  comparing the two wattages is the part done right here, and")
print("  it is why, for any single hour, standby really is a")
print("  twentieth of viewing")
print("")
print("energy is power times time")
print("  what the ratio compared : power, one hour against one hour")
print("  what the meter counts : power times hours, and the hours are")
print("    " + str(hours_on_standby_per_day) + " against " + str(hours_in_use_per_day))
print("  a twentieth of the power for eleven times the hours : eleven")
print("    twentieths, " + str(standby_energy_as_a_share_of_viewing_per_myriad) + " per ten thousand of the viewing energy")
print("  what a small number does over a long time : becomes a")
print("    large one, " + str(standby_kwh_per_year_one_set) + " kWh a year from a five-watt light")
print("  the house : " + str(house_standby_watts) + " W that never switches off, " + str(house_standby_kwh_per_year) + " kWh a year")
print("")
print("the bill")
print("  believed : standby negligible, a twentieth")
print("  actual : " + str(standby_share_of_the_total_per_myriad) + " per ten thousand of the set's energy is standby")
print("  is either wattage wrong : no")
print("  is the power ratio the energy ratio : no; the standby's")
print("    hours are its whole argument, and the ratio left them out")
print("")
nc_standby_share_read_from_power_per_myriad = 500
nc_standby_share_read_from_energy_per_myriad = 5500
nc_share_the_hours_add_per_myriad = 5000
print("null control - compare energy, not power")
print("  standby share, read from power : " + str(nc_standby_share_read_from_power_per_myriad) + " per ten thousand")
print("  standby share, read from energy : " + str(nc_standby_share_read_from_energy_per_myriad) + " per ten thousand")
print("  share the hours add : " + str(nc_share_the_hours_add_per_myriad) + " per ten thousand")
print("  no wattage changed; the hours each wattage runs for were")
print("  multiplied in before comparing")
print("")
print("what a correct comparison of two wattages guarantees")
print("  in any one hour, standby is a twentieth of viewing : exactly")
print("  standby is a twentieth of the energy : not addressed; standby")
print("    runs " + str(hours_on_standby_per_day) + " hours to viewing's " + str(hours_in_use_per_day) + ", so it is " + str(standby_energy_as_a_share_of_viewing_per_myriad) + " per ten thousand of")
print("    the viewing energy and " + str(standby_share_of_the_total_per_myriad) + " per ten thousand of the set's total")
print("")
print("a watt is a rate and a bill is a total; the small rate that never stops is")
print("the one the meter remembers, because the meter multiplies by the hours and")
print("the ratio forgot to")
print("")
print("Five watts is a twentieth of a hundred - the ratio is right. But energy is")
print("power times time, and the standby runs " + str(hours_on_standby_per_day) + " hours to viewing's " + str(hours_in_use_per_day) + ": " + str(standby_energy_wh_per_day) + " Wh against")
print("" + str(viewing_energy_wh_per_day) + " a day, " + str(standby_share_of_the_total_per_myriad) + " per ten thousand of the set's energy, and " + str(house_standby_kwh_per_year) + " kWh a year across")
print("the house's " + str(standby_devices_in_the_house) + " standby lights, until the hours are multiplied in before the ratio is taken.")
```

## stdout (executed)

```text
television in use               : 100 W for 2 hours a day, 200 Wh
television on standby           : 5 W for 22 hours a day, 110 Wh
standby power vs use power      : 500 per ten thousand, a twentieth
standby hours vs use hours      : 110000 per ten thousand, eleven to one
standby energy vs viewing energy : 5500 per ten thousand
standby share of the set's total : 3548 per ten thousand
standby, one set, per year      : 40 kWh

the house                       : 20 devices at 3 W, 60 W around the clock
house standby per year          : 525 kWh, 157 at 30 cents per kWh

the twentieth reasoning
  in use : 100 W, right
  standby : 5 W, right
  ratio : 500 per ten thousand, a twentieth
  intent : is the standby worth switching off
  facts wrong : 0
  verdict : A TWENTIETH IS NOT WORTH A SWITCH

  comparing the two wattages is the part done right here, and
  it is why, for any single hour, standby really is a
  twentieth of viewing

energy is power times time
  what the ratio compared : power, one hour against one hour
  what the meter counts : power times hours, and the hours are
    22 against 2
  a twentieth of the power for eleven times the hours : eleven
    twentieths, 5500 per ten thousand of the viewing energy
  what a small number does over a long time : becomes a
    large one, 40 kWh a year from a five-watt light
  the house : 60 W that never switches off, 525 kWh a year

the bill
  believed : standby negligible, a twentieth
  actual : 3548 per ten thousand of the set's energy is standby
  is either wattage wrong : no
  is the power ratio the energy ratio : no; the standby's
    hours are its whole argument, and the ratio left them out

null control - compare energy, not power
  standby share, read from power : 500 per ten thousand
  standby share, read from energy : 5500 per ten thousand
  share the hours add : 5000 per ten thousand
  no wattage changed; the hours each wattage runs for were
  multiplied in before comparing

what a correct comparison of two wattages guarantees
  in any one hour, standby is a twentieth of viewing : exactly
  standby is a twentieth of the energy : not addressed; standby
    runs 22 hours to viewing's 2, so it is 5500 per ten thousand of
    the viewing energy and 3548 per ten thousand of the set's total

a watt is a rate and a bill is a total; the small rate that never stops is
the one the meter remembers, because the meter multiplies by the hours and
the ratio forgot to

Five watts is a twentieth of a hundred - the ratio is right. But energy is
power times time, and the standby runs 22 hours to viewing's 2: 110 Wh against
200 a day, 3548 per ten thousand of the set's energy, and 525 kWh a year across
the house's 20 standby lights, until the hours are multiplied in before the ratio is taken.
```

## Round-trip

`ok: true` — round-trip fixpoint reached (python1 == python2)

## Trace event types

eml:run:start · eml:assign · eml:output · eml:run:done
