{"ref":{"kind":"component","id":"tenant_phase_allocation_period","key":"sha256:7f65afc9506b08bb7451e423c925f4491052a2ff20e3e33b803821b1d1915949"},"label":"Tenant phase allocation period","description":"Allocate one tenant commitment once to its first matching 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":"Leased","name":"leased","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"MW"}},{"label":"One Phase","name":"one_phase","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Phase Name","name":"phase_name","valueType":{"axes":[],"dtype":"str","unit":"text"}},{"label":"Raw Billed","name":"raw_billed","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"MW"}},{"label":"Remaining MW","name":"remaining_mw","valueType":{"axes":[],"dtype":"f64","unit":"MW"}}],"outputs":[{"label":"Billing Contribution","name":"billing_contribution","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"MW"}},{"label":"Commitment MW","name":"commitment_mw","valueType":{"axes":[],"dtype":"f64","unit":"MW"}},{"label":"Leased","name":"leased","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"MW"}},{"label":"Leased Contribution","name":"leased_contribution","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"MW"}},{"label":"Raw Billed","name":"raw_billed","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"MW"}},{"label":"Remaining MW","name":"remaining_mw","valueType":{"axes":[],"dtype":"f64","unit":"MW"}}],"dependencies":[],"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-leased","label":"Leased","kind":"input"},{"id":"input-one_phase","label":"One Phase","kind":"input"},{"id":"input-phase_name","label":"Phase Name","kind":"input"},{"id":"input-raw_billed","label":"Raw Billed","kind":"input"},{"id":"input-remaining_mw","label":"Remaining MW","kind":"input"},{"id":"step-value0","label":"(Commitment MW > 0)","kind":"step","rule":"(Commitment MW > 0)","sources":[{"node":"input-commitment_mw"}]},{"id":"output-commitment_mw","kind":"output","label":"Commitment MW","rule":"Commitment MW","sources":[{"node":"input-commitment_mw"}]},{"id":"output-leased","kind":"output","label":"Leased","rule":"Leased","sources":[{"node":"input-leased"}]},{"id":"step-selected","label":"Selected","kind":"step","rule":"if (One Phase > 0), then 1, otherwise (Phase Name = Commitment Phase Name)","sources":[{"node":"input-one_phase"},{"node":"input-phase_name"},{"node":"input-commitment_phase_name"}]},{"id":"output-raw_billed","kind":"output","label":"Raw Billed","rule":"Raw Billed","sources":[{"node":"input-raw_billed"}]},{"id":"step-requested","label":"Requested","kind":"step","rule":"if Selected, then Commitment MW, otherwise 0","sources":[{"node":"step-selected"},{"node":"input-commitment_mw"}]},{"id":"step-allocated","label":"Allocated","kind":"step","rule":"Lower of Higher of Requested and 0 and Higher of Remaining MW and 0","sources":[{"node":"step-requested"},{"node":"input-remaining_mw"}]},{"id":"step-share","label":"Share","kind":"step","rule":"if (Commitment MW > 0), then (Allocated ÷ if (Commitment MW > 0), then Commitment MW, otherwise 1), otherwise 0","sources":[{"node":"step-value0"},{"node":"input-commitment_mw"},{"node":"step-allocated"}],"calls":[{"function":"div_mw_multiple_data_center_lease","label":"Div MW multiple data center lease","bindings":[{"name":"denominator","label":"Denominator","value":"if (Commitment MW > 0), then Commitment MW, otherwise 1"},{"name":"numerator","label":"Numerator","value":"Allocated"}],"rule":"(Allocated ÷ if (Commitment MW > 0), then Commitment MW, otherwise 1)"}]},{"id":"output-remaining_mw","kind":"output","label":"Remaining MW","rule":"(Remaining MW − Allocated)","sources":[{"node":"input-remaining_mw"},{"node":"step-allocated"}]},{"id":"output-billing_contribution","kind":"output","label":"Billing Contribution","rule":"(Raw Billed × Share)","sources":[{"node":"input-raw_billed"},{"node":"step-share"}],"calls":[{"function":"mul_mw_multiple_data_center_lease","label":"Mul MW multiple data center lease","bindings":[{"name":"capacity","label":"Capacity","value":"Raw Billed"},{"name":"share","label":"Share","value":"Share"}],"rule":"(Raw Billed × Share)"}]},{"id":"output-leased_contribution","kind":"output","label":"Leased Contribution","rule":"(Leased × Share)","sources":[{"node":"input-leased"},{"node":"step-share"}],"calls":[{"function":"mul_mw_multiple_data_center_lease","label":"Mul MW multiple data center lease","bindings":[{"name":"capacity","label":"Capacity","value":"Leased"},{"name":"share","label":"Share","value":"Share"}],"rule":"(Leased × Share)"}]}],"topics":[{"label":"Tenant phase allocation period","results":["output-billing_contribution","output-commitment_mw","output-leased","output-leased_contribution","output-raw_billed","output-remaining_mw"]}]},"usedBy":[{"kind":"recipe","id":"data_center_acquisition","key":"sha256:a3de19f40187caf36db2e6ce0da98119726e3c4bf05500115912b18e3fc8c1ca"},{"kind":"recipe","id":"data_center_development","key":"sha256:b76434a51896bf65e497e8679d3a1c7a72f5c0ed2705618ed598fbad02e7ef0e"}]}
