Transparent Algorithmic Specifications & Mathematical Models

SphereBudget Financial Computation Methodology

Every simulation, amortization schedule, and cash flow calculation within SphereBudget runs deterministically in your browser client using standardized financial equations. We do not use black-box heuristics or estimated ranges.

Marcus Vance, CFP®
Marcus Vance, CFP®Financial Reviewer

Certified Financial Planner™ • Algorithmic Model Verification • Updated September 2026

Formula Audit: Certified Compliant

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:

Behavioral MomentumSmallest Balance First

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)
Core Advantage: Delivers rapid psychological micro-wins by eliminating full monthly obligations early, reducing emotional stress and improving borrower adherence over multi-year periods.
Mathematical OptimizationHighest APR First

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)
Core Advantage: Mathematically minimizes total lifetime finance charges ($\sum I_t$), consistently resulting in the absolute lowest aggregate dollar cost and fastest theoretical payoff date.

Monthly Discrete Compounding & Balance Update Formula

At each monthly iteration $m$ for account $k$, the simulator executes the following financial sequence:

1. Monthly APR Conversion Rate:
monthlyRate = APR / 12 // decimal: i_k = (APR_k / 100) / 12
Technical Note on Daily vs. Monthly Compounding: SphereBudget utilizes standard 12-month discrete periodic compounding (monthly rate = APR / 12). In actual credit card operations, issuers frequently utilize the Average Daily Balance (ADB) method: Daily Finance Charge = ADB × (APR / 365) × Days in Cycle. Our 12-period model provides an accurate, transparent, and computationally consistent baseline within 0.1%–0.3% of statement outputs without requiring daily transaction ledger entry.
2. Monthly Interest Accrual:
Interest_m = Balance_m × (APR_k / 12 / 100)
3. Net Principal Reduction:
Principal_m = min(Balance_m, TotalPayment_m - Interest_m)
4. Successive Balance Carryforward:
Balance_(m+1) = Balance_m - Principal_m
Audited Numerical Example$10,000 Principal @ 22.00% APR

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:

Scenario A: Minimum Payment ($250 / Month)
  • • 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
Scenario B: Accelerated Payment ($500 / Month)
  • • 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
Outcome: Paying $500 instead of the $250 minimum saves $4,770 in interest and frees the borrower from debt 42 months (3.5 years) earlier.

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.

Future Value Formula with Recurring Contributions:
FV = PV × (1 + r/n)^(nt) + PMT × [ ((1 + r/n)^(nt) - 1) / (r/n) ]
• PV: Present Starting Balance (Current Savings)
• PMT: Periodic Monthly Contribution
• r: Annual Nominal Yield (e.g., 4.5% High-Yield Cash)
• n: Compounding Periods per Year ($n = 12$)
• t: Time Horizon in Years
• FV: Projected Terminal Accumulation

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)
50% Target

Essential Needs

Housing (rent/mortgage), base groceries, essential utilities, transportation, health insurance, and contractual minimum debt service obligations.

30% Target

Discretionary Wants

Dining out, entertainment, subscriptions, leisure travel, hobby expenditures, and lifestyle upgrades that can be halted during an emergency.

20% Target

Wealth & Overpayment

Emergency reserve funding, IRA/401(k) allocations, taxable investment brokerage deposits, and accelerated principal prepayments above statutory minimums.

Zero-Based Rebalance Condition: A budget achieves zero-based equilibrium when:
Net_Monthly_Income - (Total_Needs + Total_Wants + Total_Savings_and_Debt_Prepayment) = $0.00

4. 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.