{"ref":{"kind":"component","id":"lbo_credit_window","key":"sha256:4105bfeff5aaf29e09ba42b36b2f73fc309a87f739d52ecdf5af14e9ae6e7d5f"},"label":"Covenant window","description":"Select the inclusive covenant interval using exact half-month boundaries.","inputs":[{"label":"End","name":"end","valueType":{"axes":[],"dtype":"f64","unit":"mo"}},{"label":"Periods","name":"periods","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"i64","unit":"1"}},{"label":"Start","name":"start","valueType":{"axes":[],"dtype":"f64","unit":"mo"}}],"outputs":[{"label":"Active","name":"active","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"flag"}}],"dependencies":[],"libraries":["lbo_credit"],"notes":{"conventions":["Round start and end to the nearest month, with half-month ties choosing the even month.","Use the fixed LBO horizon of 121 observations, months zero through 120; exclude opening and keep outside intervals inactive."]},"calculation":{"nodes":[{"id":"input-end","label":"End","kind":"input"},{"id":"input-periods","label":"Periods","kind":"input"},{"id":"input-start","label":"Start","kind":"input"},{"id":"step-value0","label":"(Periods × 1)","kind":"step","rule":"(Periods × 1)","sources":[{"node":"input-periods"}]},{"id":"output-active","kind":"output","label":"Active","rule":"if if if (Periods > 0), then if if fixed schedule of 121 values (month), then (Start ≤ ((Periods × 1) + 0.5)), otherwise (Start < ((Periods × 1) + 0.5)), then true, otherwise false, otherwise false, then if if fixed schedule of 121 values (month), then (End ≥ ((Periods × 1) − 0.5)), otherwise (End > ((Periods × 1) − 0.5)), then true, otherwise false, otherwise false, then 1, otherwise 0","sources":[{"node":"input-periods"},{"node":"input-start"},{"node":"step-value0"},{"node":"input-end"}]}],"topics":[{"label":"Covenant window","results":["output-active"]}]},"usedBy":[{"kind":"recipe","id":"lbo","key":"sha256:6c9502c2e1a240aaed8179c2349c4bfb3748ca35116e53755e0146d818a0638f"}]}
