{"ref":{"kind":"component","id":"cash_sweep_period","key":"sha256:50205797357610682b9bf5417f96b2fe21c6af0d3d970cdea0f15fcc88d10a54"},"label":"Acquisition Cash Sweep Period","description":"Trap or release cash for one lender-controlled sweep period.","inputs":[{"label":"Breaches","name":"breaches","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Cash Flow","name":"cash_flow","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Enabled","name":"enabled","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Opening","name":"opening","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Passes","name":"passes","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Payoff","name":"payoff","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Prior Cure Months","name":"prior_cure_months","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Release Months","name":"release_months","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Was Active","name":"was_active","valueType":{"axes":[],"dtype":"f64","unit":"flag"}}],"outputs":[{"label":"Active","name":"active","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Beginning","name":"beginning","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Cash Flow","name":"cash_flow","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Cure Months","name":"cure_months","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Ending","name":"ending","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Release","name":"release","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Sweep","name":"sweep","valueType":{"axes":[],"dtype":"f64","unit":"$"}}],"dependencies":[],"libraries":["acquisition_debt"],"notes":{},"calculation":{"nodes":[{"id":"input-breaches","label":"Breaches","kind":"input"},{"id":"input-cash_flow","label":"Cash Flow","kind":"input"},{"id":"input-enabled","label":"Enabled","kind":"input"},{"id":"input-opening","label":"Opening","kind":"input"},{"id":"input-passes","label":"Passes","kind":"input"},{"id":"input-payoff","label":"Payoff","kind":"input"},{"id":"input-prior_cure_months","label":"Prior Cure Months","kind":"input"},{"id":"input-release_months","label":"Release Months","kind":"input"},{"id":"input-was_active","label":"Was Active","kind":"input"},{"id":"output-beginning","kind":"output","label":"Beginning","rule":"Opening","sources":[{"node":"input-opening"}]},{"id":"step-cured","label":"Cured","kind":"step","rule":"if (Was Active × Passes), then (Prior Cure Months + 1), otherwise 0","sources":[{"node":"input-was_active"},{"node":"input-passes"},{"node":"input-prior_cure_months"}]},{"id":"step-value1","label":"Product using Payoff","kind":"step","rule":"(Higher of Payoff and ((Release Months > 0) × (Cured ≥ Release Months)) × Was Active)","sources":[{"node":"input-payoff"},{"node":"input-release_months"},{"node":"step-cured"},{"node":"input-was_active"}]},{"id":"step-release","label":"Release","kind":"step","rule":"if (Enabled × Product using Payoff), then Opening, otherwise 0","sources":[{"node":"input-enabled"},{"node":"step-value1"},{"node":"input-opening"}]},{"id":"step-value0","label":"if Product using Payoff, then 0, otherwise Was Active","kind":"step","rule":"if Product using Payoff, then 0, otherwise Was Active","sources":[{"node":"step-value1"},{"node":"input-was_active"}]},{"id":"output-cure_months","kind":"output","label":"Cure Months","rule":"if Enabled, then if Product using Payoff, then 0, otherwise Cured, otherwise 0","sources":[{"node":"input-enabled"},{"node":"step-value1"},{"node":"step-cured"}]},{"id":"output-release","kind":"output","label":"Release","rule":"Release","sources":[{"node":"step-release"}]},{"id":"step-active","label":"Active","kind":"step","rule":"(if (((if Product using Payoff, then 0, otherwise Was Active ≤ 0) × Breaches) × (Payoff ≤ 0)), then 1, otherwise if Product using Payoff, then 0, otherwise Was Active × Enabled)","sources":[{"node":"step-value0"},{"node":"input-breaches"},{"node":"input-payoff"},{"node":"input-enabled"}]},{"id":"step-sweep","label":"Sweep","kind":"step","rule":"if (Active × (Payoff ≤ 0)), then Higher of Cash Flow and 0, otherwise 0","sources":[{"node":"step-active"},{"node":"input-payoff"},{"node":"input-cash_flow"}]},{"id":"output-active","kind":"output","label":"Active","rule":"Active","sources":[{"node":"step-active"}]},{"id":"step-ending","label":"Ending","kind":"step","rule":"((Opening − Release) + Sweep)","sources":[{"node":"input-opening"},{"node":"step-release"},{"node":"step-sweep"}]},{"id":"output-cash_flow","kind":"output","label":"Cash Flow","rule":"(Release − Sweep)","sources":[{"node":"step-release"},{"node":"step-sweep"}]},{"id":"output-sweep","kind":"output","label":"Sweep","rule":"Sweep","sources":[{"node":"step-sweep"}]},{"id":"output-ending","kind":"output","label":"Ending","rule":"Ending","sources":[{"node":"step-ending"}]}],"topics":[{"label":"Acquisition Cash Sweep Period","results":["output-active","output-beginning","output-cash_flow","output-cure_months","output-ending","output-release","output-sweep"]}]},"usedBy":[{"kind":"recipe","id":"hotel","key":"sha256:bf0956eceaed37e652044e718371c50f6d742ef9dc4b93edf968a748eda841c3"},{"kind":"recipe","id":"multifamily","key":"sha256:397eeb7b5a8b1a4584c66bc4c75f1a85494dbe812871f2e39c9192beb8a51f18"}]}
