1. Debt Elimination Engine: Snowball vs. Avalanche
SphereBudget models multiple simultaneous revolving and installment debt accounts using monthly step discrete iteration. Users can toggle dynamically between the two primary debt payoff philosophies:
Debt Snowball Method
Accounts are ordered strictly by principal balance ascending: $B_1 \le B_2 \le \dots \le B_k$. Minimum monthly payments $M_i$ are assigned across all active loans. All available extra monthly payment funds ($E$) are concentrated exclusively on $B_1$ until its balance reaches zero.
debts.sort((a, b) => a.balance - b.balance)Debt Avalanche Method
Accounts are sorted strictly by nominal Annual Percentage Rate descending: $r_1 \ge r_2 \ge \dots \ge r_k$. Minimum monthly payments are maintained everywhere, while all excess surplus is routed to the highest-interest obligation.
debts.sort((a, b) => b.apr - a.apr)Monthly Discrete Compounding & Balance Update Formula
At each monthly iteration $m$ for account $k$, the simulator executes the following financial sequence:
Step-by-Step Mathematical Walkthrough
Consider a borrower with a single revolving credit card balance of $10,000.00 at a nominal 22.00% APR:
- • Monthly Rate: 22% / 12 = 1.8333%
- • Month 1 Interest: $10,000 × 0.018333 = $183.33
- • Month 1 Principal: $250 - $183.33 = $66.67
- • Month 2 Balance: $10,000 - $66.67 = $9,933.33
- Payoff: ~68 Months (5.7 Years) • Total Interest: ~$7,450
- • Monthly Rate: 22% / 12 = 1.8333%
- • Month 1 Interest: $10,000 × 0.018333 = $183.33
- • Month 1 Principal: $500 - $183.33 = $316.67
- • Month 2 Balance: $10,000 - $316.67 = $9,683.33
- Payoff: ~26 Months (2.2 Years) • Total Interest: ~$2,680
The Cascading Rollover Mechanism (The "Snowball Effect")
When account k achieves zero balance (Balance = $0.00), its entire former minimum payment M_k is not absorbed back into discretionary spending. Instead, our engine automatically cascades M_k into the active surplus pool:Active_Extra_Pool = Base_Extra_Payment + ∑(Paid_Off_Minimums)This exponential snowball acceleration is why payoff timelines compress dramatically after the first debt is eliminated.
2. Savings Goal Velocity & Compound Interest Modeling
SphereBudget projects emergency reserve accumulation and wealth milestones using discrete monthly compound future value calculations.
For emergency funds, our benchmark recommendation computes $3\times$ to $6\times$ your total verified monthly essential expenditures (fixed obligations + essential groceries + utilities) derived dynamically from the Budget Planner.
3. The 50/30/20 Budgeting Heuristic & Cash Flow Rules
SphereBudget categorizes income and expense cash flows into the standardized 50/30/20 heuristic (50% Needs, 30% Wants, 20% Savings/Debt):
Allocation = (50% Needs) + (30% Wants) + (20% Savings / Accelerated Debt)Essential Needs
Housing (rent/mortgage), base groceries, essential utilities, transportation, health insurance, and contractual minimum debt service obligations.
Discretionary Wants
Dining out, entertainment, subscriptions, leisure travel, hobby expenditures, and lifestyle upgrades that can be halted during an emergency.
Wealth & Overpayment
Emergency reserve funding, IRA/401(k) allocations, taxable investment brokerage deposits, and accelerated principal prepayments above statutory minimums.
Net_Monthly_Income - (Total_Needs + Total_Wants + Total_Savings_and_Debt_Prepayment) = $0.004. Simulation Assumptions & Technical Constraints
- Fixed Rate Modeling: Debt calculations assume APRs remain constant throughout the payoff horizon. Variable-rate credit lines (which fluctuate alongside SOFR or the Fed Prime Rate) may deviate as monetary conditions shift.
- Timely Minimum Payment Prerequisite: Projections presuppose no late payment penalties, annual membership card fees, or punitive default interest rate triggers occur.
- Local-First Client Execution: All numerical processing is computed synchronously on the client device via IEEE 754 floating point arithmetic with currency roundings to 2 decimal places. No inputs are transmitted to external servers.