{"ref":{"kind":"component","id":"lbo_sweep_policy","key":"sha256:7a17da90e73b0a59df1ff3f5f04b693d483e98652991f52e4f21b7a5955b469d"},"label":"Cash sweep policy","description":"Select the cash sweep rate from opening leverage and explicit tiers.","inputs":[{"label":"Balance","name":"balance","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Enabled","name":"enabled","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Opening EBITDA","name":"opening_ebitda","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Rate","name":"rate","valueType":{"axes":[],"dtype":"f64","unit":"%"}},{"label":"Rates","name":"rates","valueType":{"axes":[{"extent":3,"name":"tier","variable":false}],"dtype":"f64","unit":"%"}},{"label":"Thresholds","name":"thresholds","valueType":{"axes":[{"extent":3,"name":"tier","variable":false}],"dtype":"f64","unit":"x"}}],"outputs":[{"label":"Rate","name":"rate","valueType":{"axes":[],"dtype":"f64","unit":"%"}}],"dependencies":[],"libraries":["lbo_units"],"notes":{"conventions":["Leverage is opening monthly debt divided by positive opening annual EBITDA.","Select the highest qualifying threshold, regardless of tier order. Later equal thresholds take precedence.","Disabled tiers, nonpositive EBITDA or no qualifying tier use the authored default. Rates are bounded to zero through one."]},"calculation":{"nodes":[{"id":"input-balance","label":"Balance","kind":"input"},{"id":"input-enabled","label":"Enabled","kind":"input"},{"id":"input-opening_ebitda","label":"Opening EBITDA","kind":"input"},{"id":"input-rate","label":"Rate","kind":"input"},{"id":"input-rates","label":"Rates","kind":"input"},{"id":"input-thresholds","label":"Thresholds","kind":"input"},{"id":"step-value0","label":"(Opening EBITDA > 0)","kind":"step","rule":"(Opening EBITDA > 0)","sources":[{"node":"input-opening_ebitda"}]},{"id":"step-value3","label":"Value at index(Thresholds, 0)","kind":"step","rule":"Value at index(Thresholds, 0)","sources":[{"node":"input-thresholds"}]},{"id":"step-value1","label":"Div currency multiple using (Opening EBITDA > 0)","kind":"step","rule":"(Balance ÷ if (Opening EBITDA > 0), then Opening EBITDA, otherwise 1)","sources":[{"node":"step-value0"},{"node":"input-opening_ebitda"},{"node":"input-balance"}],"calls":[{"function":"div_currency_multiple","label":"Div currency multiple","bindings":[{"name":"denominator","label":"Denominator","value":"if (Opening EBITDA > 0), then Opening EBITDA, otherwise 1"},{"name":"numerator","label":"Numerator","value":"Balance"}],"rule":"(Balance ÷ if (Opening EBITDA > 0), then Opening EBITDA, otherwise 1)"}]},{"id":"step-value2","label":"Comparison using Div currency multiple using (Opening EBITDA > 0)","kind":"step","rule":"(Div currency multiple using (Opening EBITDA > 0) ≥ Value at index(Thresholds, 0))","sources":[{"node":"step-value1"},{"node":"step-value3"}]},{"id":"step-value4","label":"Conditional result using Div currency multiple using (Opening EBITDA > 0)","kind":"step","rule":"if (Div currency multiple using (Opening EBITDA > 0) ≥ Value at index(Thresholds, 1)), then if if if Comparison using Div currency multiple using (Opening EBITDA > 0), then false, otherwise true, then true, otherwise if (Value at index(Thresholds, 1) ≥ Value at index(Thresholds, 0)), then true, otherwise false, then true, otherwise false, otherwise false","sources":[{"node":"step-value1"},{"node":"input-thresholds"},{"node":"step-value2"},{"node":"step-value3"}]},{"id":"output-rate","kind":"output","label":"Rate","rule":"if if (Enabled > 0), then if (Opening EBITDA > 0), then true, otherwise false, otherwise false, then if if (Div currency multiple using (Opening EBITDA > 0) ≥ Value at index(Thresholds, 2)), then if if if if Comparison using Div currency multiple using (Opening EBITDA > 0), then true, otherwise if Conditional result using Div currency multiple using (Opening EBITDA > 0), then true, otherwise false, then false, otherwise true, then true, otherwise if (Value at index(Thresholds, 2) ≥ if Conditional result using Div currency multiple using (Opening EBITDA > 0), then Value at index(Thresholds, 1), otherwise Value at index(Thresholds, 0)), then true, otherwise false, then true, otherwise false, otherwise false, then Limit to range(Value at index(Rates, 2), 0, 1), otherwise if Conditional result using Div currency multiple using (Opening EBITDA > 0), then Limit to range(Value at index(Rates, 1), 0, 1), otherwise if Comparison using Div currency multiple using (Opening EBITDA > 0), then Limit to range(Value at index(Rates, 0), 0, 1), otherwise Limit to range(Rate, 0, 1), otherwise Limit to range(Rate, 0, 1)","sources":[{"node":"input-enabled"},{"node":"step-value0"},{"node":"step-value1"},{"node":"input-thresholds"},{"node":"step-value2"},{"node":"step-value4"},{"node":"step-value3"},{"node":"input-rates"},{"node":"input-rate"}]}],"topics":[{"label":"Cash sweep policy","results":["output-rate"]}]},"usedBy":[{"kind":"recipe","id":"lbo","key":"sha256:6c9502c2e1a240aaed8179c2349c4bfb3748ca35116e53755e0146d818a0638f"}]}
