{"ref":{"kind":"component","id":"corporate_funding_period","key":"sha256:7fbcb0a435d447f1e56225b6ceeea584fd21fb14e1806a41771fe39e54672de6"},"label":"Principal, interest and maturity","description":"Price explicitly timed principal movements and expose unpaid maturity without inventing financing.","inputs":[{"label":"Cash Rate","name":"cash_rate","valueType":{"axes":[],"dtype":"f64","unit":"%"}},{"label":"Issued","name":"issued","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Issued Weight","name":"issued_weight","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Matured","name":"matured","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Opening","name":"opening","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"PIK Rate","name":"pik_rate","valueType":{"axes":[],"dtype":"f64","unit":"%"}},{"label":"Repaid","name":"repaid","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Repaid Weight","name":"repaid_weight","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Year Fraction","name":"year_fraction","valueType":{"axes":[],"dtype":"f64","unit":"1"}}],"outputs":[{"label":"Beginning","name":"beginning","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Cash Flow","name":"cash_flow","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Cash Interest","name":"cash_interest","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Closing","name":"closing","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Interest Exposure","name":"interest_exposure","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Invalid Terms","name":"invalid_terms","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Negative Balance","name":"negative_balance","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Negative Exposure","name":"negative_exposure","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Past Due","name":"past_due","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"PIK Interest","name":"pik_interest","valueType":{"axes":[],"dtype":"f64","unit":"$"}}],"dependencies":[{"id":"corporate_debt_period","key":"sha256:03d8708fcc2ef3d4e399610ca1f40afff1c5697bf59180c1abdd499d9a4919d2","kind":"component"}],"libraries":["corporate_funding"],"notes":{"conventions":["One period, instrument, currency and scale. Opening is contractual principal, not a carrying value including discount or accrued coupons.","Year fraction and movement weights are explicit. A draw weight is the fraction of the period earning interest; a repayment weight is the fraction saving interest.","Opening principal earns for the full period. Period-end PIK earns interest starting next period. No within-period compounding is inferred.","Cash interest is assumed accrued and paid in the same period. PIK is noncash principal. Fees, discount amortization, FX and accrued coupons require separate schedules.","Matured is 0 or 1 and means the contractual maturity has been reached by period end. Outstanding positive principal remains past due; there is no automatic repayment or refinancing.","Cash rates may be signed. Principal flows, PIK rates and year fractions must be nonnegative; weights must lie in [0, 1]. Invalid terms and negative exposure/principal remain visible."]},"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":"output-beginning","kind":"output","label":"Beginning","rule":"Opening","sources":[{"node":"input-opening"}]},{"id":"step-interest_exposure","label":"Interest Exposure","kind":"step","rule":"((Opening + (Issued × Issued Weight)) − (Repaid × Repaid Weight))","sources":[{"node":"input-opening"},{"node":"input-issued"},{"node":"input-issued_weight"},{"node":"input-repaid"},{"node":"input-repaid_weight"}]},{"id":"output-invalid_terms","kind":"output","label":"Invalid Terms","rule":"if if if if if if if if if if (Opening ≥ 0), then if (Issued ≥ 0), then true, otherwise false, otherwise false, then if (Repaid ≥ 0), then true, otherwise false, otherwise false, then if (PIK Rate ≥ 0), then true, otherwise false, otherwise false, then if (Year Fraction ≥ 0), then true, otherwise false, otherwise false, then if (Issued Weight ≥ 0), then true, otherwise false, otherwise false, then if (Issued Weight ≤ 1), then true, otherwise false, otherwise false, then if (Repaid Weight ≥ 0), then true, otherwise false, otherwise false, then if (Repaid Weight ≤ 1), then true, otherwise false, otherwise false, then if if (Matured = 0), then true, otherwise if (Matured = 1), then true, otherwise false, then true, otherwise false, otherwise false, then 0, otherwise 1","sources":[{"node":"input-opening"},{"node":"input-issued"},{"node":"input-repaid"},{"node":"input-pik_rate"},{"node":"input-year_fraction"},{"node":"input-issued_weight"},{"node":"input-repaid_weight"},{"node":"input-matured"}]},{"id":"step-pik_interest","label":"PIK Interest","kind":"step","rule":"((Interest Exposure × PIK Rate) × Year Fraction)","sources":[{"node":"step-interest_exposure"},{"node":"input-pik_rate"},{"node":"input-year_fraction"}]},{"id":"output-cash_interest","kind":"output","label":"Cash Interest","rule":"((Interest Exposure × Cash Rate) × Year Fraction)","sources":[{"node":"step-interest_exposure"},{"node":"input-cash_rate"},{"node":"input-year_fraction"}]},{"id":"output-interest_exposure","kind":"output","label":"Interest Exposure","rule":"Interest Exposure","sources":[{"node":"step-interest_exposure"}]},{"id":"output-negative_exposure","kind":"output","label":"Negative Exposure","rule":"Higher of (Interest Exposure × -1) and 0","sources":[{"node":"step-interest_exposure"}]},{"id":"step-principal","label":"Principal","kind":"step","rule":"Result of Single-period debt roll-forward","sources":[{"node":"input-issued"},{"node":"step-pik_interest"},{"node":"input-opening"},{"node":"input-repaid"}],"calls":[{"component":"corporate_debt_period","purpose":"Roll debt for one supplied period without treating noncash book movements as financing proceeds.","label":"Single-period debt roll-forward","bindings":[{"name":"issued","label":"Issued","value":"Issued"},{"name":"noncash_changes","label":"Noncash Changes","value":"PIK Interest"},{"name":"opening","label":"Opening","value":"Opening"},{"name":"repaid","label":"Repaid","value":"Repaid"}]}]},{"id":"output-pik_interest","kind":"output","label":"PIK Interest","rule":"PIK Interest","sources":[{"node":"step-pik_interest"}]},{"id":"output-cash_flow","kind":"output","label":"Cash Flow","rule":"Principal · Cash Flow","sources":[{"node":"step-principal","field":"cash_flow","fieldLabel":"Cash Flow","url":"/catalog/components/corporate_debt_period/#output-cash_flow"}]},{"id":"output-closing","kind":"output","label":"Closing","rule":"Principal · Closing","sources":[{"node":"step-principal","field":"closing","fieldLabel":"Closing","url":"/catalog/components/corporate_debt_period/#output-closing"}]},{"id":"output-negative_balance","kind":"output","label":"Negative Balance","rule":"Principal · Negative Balance","sources":[{"node":"step-principal","field":"negative_balance","fieldLabel":"Negative Balance","url":"/catalog/components/corporate_debt_period/#output-negative_balance"}]},{"id":"output-past_due","kind":"output","label":"Past Due","rule":"if (Matured > 0), then Higher of Principal · Closing and 0, otherwise 0","sources":[{"node":"input-matured"},{"node":"step-principal","field":"closing","fieldLabel":"Closing","url":"/catalog/components/corporate_debt_period/#output-closing"}]}],"topics":[{"label":"Principal, interest and maturity","results":["output-beginning","output-cash_interest","output-interest_exposure","output-invalid_terms","output-negative_exposure","output-past_due","output-pik_interest"]},{"label":"Single-period debt roll-forward","results":["output-cash_flow","output-closing","output-negative_balance"]}]},"usedBy":[]}
