WangBuddy

Product help

How WangBuddy calculates Safe to Spend

WangBuddy's safe_to_spend_v1 calculation starts with recorded cash that has already arrived. It subtracts uncovered required commitments in the selected horizon, all virtual reserves, and the safety buffer without counting linked reserve coverage twice.

Calculation version and purpose

The production finance service identifies this method as safe_to_spend_v1. Its purpose is to produce a deterministic, conservative planning value from customer-owned records. The finance engine stores and calculates all money as integer sen.

Calculation sequence

  1. Establish available cash. Start from the latest manual cash snapshot and apply recorded income and spending events that occurred after it and no later than the calculation time. Clamp a negative available balance to zero.
  2. Select required commitments. Include active, open, required occurrences from Malaysia-local today through the selected horizon. Paid occurrences and optional commitments are excluded.
  3. Apply linked reserve coverage. Process commitments in order. A linked reserve covers up to its remaining balance; only the uncovered part joins the commitment deduction.
  4. Protect every reserve. Add all positive virtual reserve balances to the protected-reserve deduction, including reserves linked to commitments.
  5. Protect the safety buffer. Deduct the user's non-negative recorded buffer.
  6. Separate display from shortfall. Keep the signed raw result. Display at least RM0.00 and report any negative distance from zero as shortfall.

The no-double-count invariant

Because all reserve balances remain protected, the commitment deduction contains only amounts not covered by the linked reserve pool. Coverage is consumed as commitments are processed and cannot be reused. This prevents the same reserve balance from being subtracted again as a fully uncovered commitment.

What the calculation does not do

  • It does not add future income, predicted earnings or unpaid invoices.
  • It does not read a bank account or verify that a recorded balance matches one.
  • It does not automatically judge whether a commitment, reserve or buffer is appropriate.
  • It does not provide financial, investment, tax or legal advice.

Read the main Safe-to-Spend explanation and worked example before using this technical summary on its own.

A payday system for people without a payday

Put your cash-flow plan in one place.

Record what has arrived, protect what has a job and see a conservative Safe-to-Spend estimate.

Start free