{"ref":{"kind":"component","id":"corporate_funding_schedule","key":"sha256:ccd3a2eee61d96d5344f73593849b3e687e4459666d1f6a526e3ea85edd411f1"},"label":"Monthly financing schedule","description":"Roll timed principal and interest into explicit monthly schedules for statement composition.","inputs":[{"label":"Cash Rate","name":"cash_rate","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"%"}},{"label":"Issued","name":"issued","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Issued Weight","name":"issued_weight","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"1"}},{"label":"Matured","name":"matured","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"flag"}},{"label":"Opening","name":"opening","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"PIK Rate","name":"pik_rate","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"%"}},{"label":"Repaid","name":"repaid","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Repaid Weight","name":"repaid_weight","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"1"}},{"label":"Year Fraction","name":"year_fraction","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"1"}}],"outputs":[{"label":"Beginning","name":"beginning","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Cash Flow","name":"cash_flow","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Cash Interest","name":"cash_interest","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Closing","name":"closing","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Interest Exposure","name":"interest_exposure","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Invalid Terms","name":"invalid_terms","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"1"}},{"label":"Negative Balance","name":"negative_balance","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Negative Exposure","name":"negative_exposure","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Past Due","name":"past_due","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"PIK Interest","name":"pik_interest","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}}],"dependencies":[{"id":"corporate_funding_period","key":"sha256:7fbcb0a435d447f1e56225b6ceeea584fd21fb14e1806a41771fe39e54672de6","kind":"component"}],"libraries":["corporate_funding"],"notes":{"conventions":["Compose one principal instrument across supplied months. Each month supplies its year fraction, rates, draw/repayment weights and maturity status.","Supply matured=1 for every month at or after contractual maturity. A maturity reversal is reported as invalid terms.","Opening observations, if present, have zero year fraction and zero principal flows. No calendar, day-count basis or rollover is inferred.","Cash interest and PIK connect separately to statements; principal cash flow excludes both interest categories."]},"calculation":{"nodes":[{"id":"input-cash_rate","label":"Cash Rate","kind":"input"},{"id":"input-issued","label":"Issued","kind":"input"},{"id":"input-issued_weight","label":"Issued Weight","kind":"input"},{"id":"input-matured","label":"Matured","kind":"input"},{"id":"input-opening","label":"Opening","kind":"input"},{"id":"input-pik_rate","label":"PIK Rate","kind":"input"},{"id":"input-repaid","label":"Repaid","kind":"input"},{"id":"input-repaid_weight","label":"Repaid Weight","kind":"input"},{"id":"input-year_fraction","label":"Year Fraction","kind":"input"},{"id":"step-periods","label":"Periods","kind":"step","rule":"Run Principal, interest and maturity for each month. Carry the closing state into the next period.","sources":[{"node":"input-cash_rate"},{"node":"input-issued"},{"node":"input-issued_weight"},{"node":"input-matured"},{"node":"input-pik_rate"},{"node":"input-repaid"},{"node":"input-repaid_weight"},{"node":"input-year_fraction"},{"node":"input-opening"}],"calls":[{"component":"corporate_funding_period","label":"Principal, interest and maturity","purpose":"Price explicitly timed principal movements and expose unpaid maturity without inventing financing.","bindings":[{"name":"cash_rate","label":"Cash Rate","value":"Cash Rate"},{"name":"issued","label":"Issued","value":"Issued"},{"name":"issued_weight","label":"Issued Weight","value":"Issued Weight"},{"name":"matured","label":"Matured","value":"Matured"},{"name":"pik_rate","label":"PIK Rate","value":"PIK Rate"},{"name":"repaid","label":"Repaid","value":"Repaid"},{"name":"repaid_weight","label":"Repaid Weight","value":"Repaid Weight"},{"name":"year_fraction","label":"Year Fraction","value":"Year Fraction"}],"carry":[{"input":"opening","output":"closing","label":"Opening","initial":"Opening"}]}]},{"id":"output-beginning","kind":"output","label":"Beginning","rule":"Periods · Beginning","sources":[{"node":"step-periods","field":"beginning","fieldLabel":"Beginning","url":"/catalog/components/corporate_funding_period/#output-beginning"}]},{"id":"output-cash_flow","kind":"output","label":"Cash Flow","rule":"Periods · Cash Flow","sources":[{"node":"step-periods","field":"cash_flow","fieldLabel":"Cash Flow","url":"/catalog/components/corporate_funding_period/#output-cash_flow"}]},{"id":"output-cash_interest","kind":"output","label":"Cash Interest","rule":"Periods · Cash Interest","sources":[{"node":"step-periods","field":"cash_interest","fieldLabel":"Cash Interest","url":"/catalog/components/corporate_funding_period/#output-cash_interest"}]},{"id":"output-closing","kind":"output","label":"Closing","rule":"Periods · Closing","sources":[{"node":"step-periods","field":"closing","fieldLabel":"Closing","url":"/catalog/components/corporate_funding_period/#output-closing"}]},{"id":"output-interest_exposure","kind":"output","label":"Interest Exposure","rule":"Periods · Interest Exposure","sources":[{"node":"step-periods","field":"interest_exposure","fieldLabel":"Interest Exposure","url":"/catalog/components/corporate_funding_period/#output-interest_exposure"}]},{"id":"output-negative_balance","kind":"output","label":"Negative Balance","rule":"Periods · Negative Balance","sources":[{"node":"step-periods","field":"negative_balance","fieldLabel":"Negative Balance","url":"/catalog/components/corporate_funding_period/#output-negative_balance"}]},{"id":"output-negative_exposure","kind":"output","label":"Negative Exposure","rule":"Periods · Negative Exposure","sources":[{"node":"step-periods","field":"negative_exposure","fieldLabel":"Negative Exposure","url":"/catalog/components/corporate_funding_period/#output-negative_exposure"}]},{"id":"output-past_due","kind":"output","label":"Past Due","rule":"Periods · Past Due","sources":[{"node":"step-periods","field":"past_due","fieldLabel":"Past Due","url":"/catalog/components/corporate_funding_period/#output-past_due"}]},{"id":"output-pik_interest","kind":"output","label":"PIK Interest","rule":"Periods · PIK Interest","sources":[{"node":"step-periods","field":"pik_interest","fieldLabel":"PIK Interest","url":"/catalog/components/corporate_funding_period/#output-pik_interest"}]},{"id":"output-invalid_terms","kind":"output","label":"Invalid Terms","rule":"(Periods · Invalid Terms + if (Matured < Shift(Matured, 1)), then 1, otherwise 0)","sources":[{"node":"step-periods","field":"invalid_terms","fieldLabel":"Invalid Terms","url":"/catalog/components/corporate_funding_period/#output-invalid_terms"},{"node":"input-matured"}]}],"topics":[{"label":"Principal, interest and maturity","results":["output-beginning","output-cash_flow","output-cash_interest","output-closing","output-interest_exposure","output-negative_balance","output-negative_exposure","output-past_due","output-pik_interest"]},{"label":"Monthly financing schedule","results":["output-invalid_terms"]}]},"usedBy":[]}
