Skip to content

Main content

Room Upgrade Supplement Tax Order Tool

Calculate room upgrade supplement tax order from explicit caller-supplied inputs.

Loading tool…

Description

Apply taxRate to base plus supplement only when supplementTaxable, then add the full supplement and tax to base.

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.

Apply taxRate to base plus supplement only when supplementTaxable, then add the full supplement and tax to base.

When to use this tool

Use Room Upgrade Supplement Tax Order when you need one supplied billing or cost component.

How to use the tool and how it works

  1. Enter baseRate, supplement, taxRate, supplementTaxable. 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 tax, total. Use the output convention below.

Require nonnegative baseRate, supplement, and taxRate. Apply taxRate to base plus supplement only when supplementTaxable, then add the full supplement and tax to base.1

Input fieldMeaning and unitsAccepted input
baseRateBase RateRequired. Finite number; minimum 0.
supplementSupplementRequired. Finite number; minimum 0.
taxRateTax RateRequired. Finite number; minimum 0.
supplementTaxableSupplement TaxableRequired. Boolean.
Output fieldInterpretationReturned shape
taxTaxRequired. Finite number.
totalTotalRequired. Finite number.
json
{
  "input": {
    "baseRate": 100,
    "supplement": 20,
    "taxRate": 0.1,
    "supplementTaxable": true
  },
  "output": {
    "tax": 12,
    "total": 132
  }
}

Limitations and assumptions

  • TaxRate is a fraction, not a percent; amounts share currency and the flag does not select legally applicable tax treatment or monetary 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/room-upgrade-supplement-tax-order — tool.io

Similar or alternative tools