{"ref":{"kind":"component","id":"tenant_billed_capacity","key":"sha256:6d3eee239c64350bcacd5cf53a85a34dbf73ad90dfffb6debbbe8fca315591d8"},"label":"Tenant billed capacity","description":"Gate one tenant's billing demand across its allocated capacity phase.","inputs":[{"label":"Commitment MW","name":"commitment_mw","valueType":{"axes":[],"dtype":"f64","unit":"MW"}},{"label":"Commitment Phase Name","name":"commitment_phase_name","valueType":{"axes":[],"dtype":"str","unit":"text"}},{"label":"One Phase","name":"one_phase","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Phase Billed Share","name":"phase_billed_share","valueType":{"axes":[{"extent":null,"name":"capacity_phase","variable":true},{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"x"}},{"label":"Phase Names","name":"phase_names","valueType":{"axes":[{"extent":null,"name":"capacity_phase","variable":true}],"dtype":"str","unit":"text"}},{"label":"Raw Billed","name":"raw_billed","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"MW"}}],"outputs":[{"label":"Billed","name":"billed","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"MW"}}],"dependencies":[{"id":"tenant_billed_phase_period","key":"sha256:912e5b27962c4dc8edbd417bdf6accc6de5940e4d173a4e63793bdc088eccb76","kind":"component"}],"libraries":["data_center_lease_capacity"],"notes":{},"calculation":{"nodes":[{"id":"input-commitment_mw","label":"Commitment MW","kind":"input"},{"id":"input-commitment_phase_name","label":"Commitment Phase Name","kind":"input"},{"id":"input-one_phase","label":"One Phase","kind":"input"},{"id":"input-phase_billed_share","label":"Phase Billed Share","kind":"input"},{"id":"input-phase_names","label":"Phase Names","kind":"input"},{"id":"input-raw_billed","label":"Raw Billed","kind":"input"},{"id":"step-billed_phases","label":"Billed phases","kind":"step","rule":"Run Tenant billed phase period for each capacity phase. Carry the closing state into the next period.","sources":[{"node":"input-commitment_phase_name"},{"node":"input-one_phase"},{"node":"input-phase_billed_share"},{"node":"input-phase_names"},{"node":"input-raw_billed"},{"node":"input-commitment_mw"}],"calls":[{"component":"tenant_billed_phase_period","label":"Tenant billed phase period","purpose":"Allocate and gate one tenant's billing demand against one capacity phase.","bindings":[{"name":"commitment_phase_name","label":"Commitment Phase Name","value":"Commitment Phase Name"},{"name":"one_phase","label":"One Phase","value":"One Phase"},{"name":"phase_billed_share","label":"Phase Billed Share","value":"Phase Billed Share"},{"name":"phase_name","label":"Phase Name","value":"Phase Names"}],"carry":[{"input":"billed","output":"billed","label":"Billed","initial":"(Raw Billed × 0)"},{"input":"commitment_mw","output":"commitment_mw","label":"Commitment MW","initial":"Higher of Commitment MW and 0"},{"input":"raw_billed","output":"raw_billed","label":"Raw Billed","initial":"Raw Billed"},{"input":"remaining_mw","output":"remaining_mw","label":"Remaining MW","initial":"Higher of Commitment MW and 0"}]}]},{"id":"output-billed","kind":"output","label":"Billed","rule":"Value at index(Billed phases · Billed, -1)","sources":[{"node":"step-billed_phases","field":"billed","fieldLabel":"Billed","url":"/catalog/components/tenant_billed_phase_period/#output-billed"}]}],"topics":[{"label":"Tenant billed phase period","results":["output-billed"]}]},"usedBy":[{"kind":"recipe","id":"data_center_acquisition","key":"sha256:a3de19f40187caf36db2e6ce0da98119726e3c4bf05500115912b18e3fc8c1ca"},{"kind":"recipe","id":"data_center_development","key":"sha256:b76434a51896bf65e497e8679d3a1c7a72f5c0ed2705618ed598fbad02e7ef0e"}]}
