{"ref":{"kind":"component","id":"lbo_settlement","key":"sha256:144fad2079305c957cc6358e2afdddd20e083515f1d15da9f8592964d58ac8ee"},"label":"Settlement","description":"Select one supported operating month for terminal claims and investor distributions.","inputs":[{"label":"Exit Month","name":"exit_month","valueType":{"axes":[],"dtype":"f64","unit":"mo"}},{"label":"Monthly observations","name":"periods","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"mo"}}],"outputs":[{"label":"Selected","name":"selected","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"flag"}},{"label":"Valid","name":"valid","valueType":{"axes":[],"dtype":"f64","unit":"flag"}}],"dependencies":[],"libraries":["lbo_returns"],"notes":{"checks":[{"appliesWhen":null,"escalatesWhen":null,"failureRepair":null,"id":"exit_month","inputs":["exit_month","periods"],"kind":"value","label":"Exit month matches the horizon","message":"Exit month must select exactly one nonopening monthly observation.","notApplicableMessage":null,"output":"valid","path":"exit_month","phase":"input","reducer":"all","relation":"at_least","role":"integrity","severity":"error","sourceInputs":[],"threshold":1.0,"unavailable":null}]},"calculation":{"nodes":[{"id":"input-exit_month","label":"Exit Month","kind":"input"},{"id":"input-periods","label":"Monthly observations","kind":"input"},{"id":"step-selected","label":"Selected","kind":"step","rule":"(Monthly observations = Exit Month)","sources":[{"node":"input-periods"},{"node":"input-exit_month"}]},{"id":"output-selected","kind":"output","label":"Selected","rule":"Selected","sources":[{"node":"step-selected"}]},{"id":"output-valid","kind":"output","label":"Valid","rule":"if if (Exit Month > 0), then if (Sum(Selected) = 1), then true, otherwise false, otherwise false, then 1, otherwise 0","sources":[{"node":"input-exit_month"},{"node":"step-selected"}]}],"topics":[{"label":"Settlement","results":["output-selected","output-valid"]}]},"usedBy":[{"kind":"recipe","id":"lbo","key":"sha256:6c9502c2e1a240aaed8179c2349c4bfb3748ca35116e53755e0146d818a0638f"}]}
