nx_bills.nx
buildroot/runtime/nx_bills.nx
about
nx_bills.nx -- R1 of THE NISHI SITUATION-MANAGEMENT arc: the recurring BILLS / OBLIGATIONS register
(insurance, mortgage, HOA, utilities, ...). The ledger tracks what HAPPENED; this tracks what is COMMITTED
and what is DUE. Exact no-float (nx_money): a bill carries an amount (cents), a cadence in months
(1=monthly, 3=quarterly, 6=semiannual, 12=annual), a due day-of-month, a category code, and a paid-this-
period flag. Computes the true MONTHLY obligation (cadence-normalized), per-category totals, what is DUE
SOON, and what is OVERDUE -- so a person sees their whole picture and never misses a bill. Data-driven,
no hardware writes. license_tier: ORIGINAL
dependencies 2 imports · 8 importers
imports: nx_syscalls.nxnx_money.nx
imported by: nx_bills_entry.nxnx_bills_entry_gate.nxnx_bills_gate.nxnx_bills_store.nxnx_bills_store_gate.nxnx_climbout_real.nxnx_climbout_real_gate.nxnx_finance_web.nx
structs
| none |
consts
| 12 | const BL_HOUSING: i64 = 0 |
| 13 | const BL_INSURANCE: i64 = 1 |
| 14 | const BL_UTILITY: i64 = 2 |
| 15 | const BL_DEBT: i64 = 3 |
| 16 | const BL_OTHER: i64 = 4 |
functions
| 19 | func bl_monthly(amount: i64, cadence_months: i64) -> i64 |
| 25 | func bl_monthly_total(amounts: *i64, cadences: *i64, n: i64) -> i64 |
| 33 | func bl_category_monthly(amounts: *i64, cadences: *i64, cats: *i64, n: i64, target: i64) -> i64 |
| 42 | func bl_due_soon(due_days: *i64, today: i64, window: i64, n: i64, out_idx: *i64) -> i64 called by 1: main |
| 54 | func bl_overdue(due_days: *i64, paid: *i64, today: i64, n: i64, out_idx: *i64) -> i64 |