{"ref":{"kind":"component","id":"lbo_amortization_policy","key":"sha256:3cd4b5c2cd37c9f470bb1737f3a3b10debb4361bcba8cc04c4852891b963ea1f"},"label":"Amortization policy","description":"Select senior amortization from coverage of the base payment obligation.","inputs":[{"label":"Balance","name":"balance","valueType":{"axes":[{"extent":8,"name":"tranche","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Cash","name":"cash","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Cash Cost","name":"cash_cost","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Enabled","name":"enabled","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Minimum","name":"minimum","valueType":{"axes":[],"dtype":"f64","unit":"x"}},{"label":"Original","name":"original","valueType":{"axes":[{"extent":8,"name":"tranche","variable":false}],"dtype":"f64","unit":"$"}},{"label":"Rate","name":"rate","valueType":{"axes":[],"dtype":"f64","unit":"%"}},{"label":"Senior Mask","name":"senior_mask","valueType":{"axes":[{"extent":8,"name":"tranche","variable":false}],"dtype":"f64","unit":"%"}},{"label":"Step","name":"step","valueType":{"axes":[],"dtype":"f64","unit":"%"}}],"outputs":[{"label":"Rate","name":"rate","valueType":{"axes":[],"dtype":"f64","unit":"%"}}],"dependencies":[{"id":"corporate_amortization","key":"sha256:d45ca964d344f6d168d5f072ab312cc55c900bafaa1ac82d8489aaa61bb7c933","kind":"component"}],"libraries":["lbo_units"],"notes":{"conventions":["An enabled step-up adds to the annual senior amortization rate when base coverage is below the threshold.","Base coverage uses nonnegative cash before debt divided by cash cost plus base scheduled principal.","A nonpositive base service amount makes coverage unavailable and cannot trigger a step-up."]},"calculation":{"nodes":[{"id":"input-balance","label":"Balance","kind":"input"},{"id":"input-cash","label":"Cash","kind":"input"},{"id":"input-cash_cost","label":"Cash Cost","kind":"input"},{"id":"input-enabled","label":"Enabled","kind":"input"},{"id":"input-minimum","label":"Minimum","kind":"input"},{"id":"input-original","label":"Original","kind":"input"},{"id":"input-rate","label":"Rate","kind":"input"},{"id":"input-senior_mask","label":"Senior Mask","kind":"input"},{"id":"input-step","label":"Step","kind":"input"},{"id":"step-value0","label":"Higher of Rate and 0","kind":"step","rule":"Higher of Rate and 0","sources":[{"node":"input-rate"}]},{"id":"step-scheduled","label":"Scheduled","kind":"step","rule":"Result of Scheduled principal","sources":[{"node":"input-balance"},{"node":"input-original"},{"node":"input-senior_mask"},{"node":"step-value0"}],"calls":[{"component":"corporate_amortization","purpose":"Calculate monthly scheduled principal from original and outstanding balances.","label":"Scheduled principal","bindings":[{"name":"balance","label":"Balance","value":"Balance"},{"name":"original","label":"Original","value":"Original"},{"name":"rate","label":"Rate","value":"(Senior Mask × Higher of Rate and 0)"}]}]},{"id":"step-value2","label":"(Cash Cost + Sum(Scheduled))","kind":"step","rule":"(Cash Cost + Sum(Scheduled))","sources":[{"node":"input-cash_cost"},{"node":"step-scheduled"}]},{"id":"step-value1","label":"((Cash Cost + Sum(Scheduled)) > 0)","kind":"step","rule":"((Cash Cost + Sum(Scheduled)) > 0)","sources":[{"node":"step-value2"}]},{"id":"output-rate","kind":"output","label":"Rate","rule":"(Higher of Rate and 0 + if if if if (Enabled > 0), then if (Minimum > 0), then true, otherwise false, otherwise false, then if ((Cash Cost + Sum(Scheduled)) > 0), then true, otherwise false, otherwise false, then if ((Higher of Cash and 0 ÷ if ((Cash Cost + Sum(Scheduled)) > 0), then (Cash Cost + Sum(Scheduled)), otherwise 1) < Minimum), then true, otherwise false, otherwise false, then Higher of Step and 0, otherwise 0)","sources":[{"node":"step-value0"},{"node":"input-enabled"},{"node":"input-minimum"},{"node":"step-value1"},{"node":"step-value2"},{"node":"input-cash"},{"node":"input-step"}],"calls":[{"function":"div_currency_multiple","label":"Div currency multiple","bindings":[{"name":"denominator","label":"Denominator","value":"if ((Cash Cost + Sum(Scheduled)) > 0), then (Cash Cost + Sum(Scheduled)), otherwise 1"},{"name":"numerator","label":"Numerator","value":"Higher of Cash and 0"}],"rule":"(Higher of Cash and 0 ÷ if ((Cash Cost + Sum(Scheduled)) > 0), then (Cash Cost + Sum(Scheduled)), otherwise 1)"}]}],"topics":[{"label":"Amortization policy","results":["output-rate"]}]},"usedBy":[{"kind":"recipe","id":"lbo","key":"sha256:6c9502c2e1a240aaed8179c2349c4bfb3748ca35116e53755e0146d818a0638f"}]}
