Skip to content

Main content

Minibar Deposit Vatbase Flag Tool

Tax arithmetic with an explicit deposit-inclusion policy; no jurisdictional treatment is selected.

Loading tool…

Description

Include deposit in taxBase only when depositTaxable, calculate tax, and add purchase, deposit, and tax.

Hospitality charges depend on the unit of service, inclusion rules, deposits, commissions, and tax bases. Operation order can change an amount, while arithmetic alone does not establish contract terms or liability.

Include deposit in taxBase only when depositTaxable, calculate tax, and add purchase, deposit, and tax.

When to use this tool

Use Minibar Deposit Vatbase Flag when you need one supplied billing or cost component.

How to use the tool and how it works

  1. Enter purchase, deposit, taxRate, depositTaxable. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read taxBase, tax, total. Use the output convention below.

Require nonnegative purchase, deposit, and taxRate. Include deposit in taxBase only when depositTaxable, calculate tax, and add purchase, deposit, and tax.1

Input fieldMeaning and unitsAccepted input
purchasePurchaseRequired. Finite number; minimum 0.
depositDepositRequired. Finite number; minimum 0.
taxRateTax RateRequired. Finite number; minimum 0.
depositTaxableDeposit TaxableRequired. Boolean.
Output fieldInterpretationReturned shape
taxBaseTax BaseRequired. Finite number.
taxTaxRequired. Finite number.
totalTotalRequired. Finite number.
json
{
  "input": {
    "purchase": 20,
    "deposit": 5,
    "taxRate": 0.2,
    "depositTaxable": false
  },
  "output": {
    "taxBase": 20,
    "tax": 4,
    "total": 29
  }
}

Limitations and assumptions

  • TaxRate is a fraction; the supplied flag does not determine a deposit's legal VAT status, refund treatment, or invoice rounding.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Reconcile the result with booking terms, actual invoice rules, taxes, and monetary rounding.

References

  1. Calculation and input contract: hospitality/minibar-deposit-vatbase-flag — tool.io

Similar or alternative tools