Examples
Examples
Try the starting example
- Service price (USD)
- 100
- Deposit already paid (USD)
- 30
- Cancelled flag (0=no,1=yes)
- 0
- Supplied cancellation charge if cancelled (USD)
- 20
- Additional amount payable (USD)
- $70.00
- Deposit refund (USD)
- $0.00
- Applicable final charge (USD)
- $100.00
Try another scenario
- Service price (USD)
- 150
- Deposit already paid (USD)
- 50
- Cancelled flag (0=no,1=yes)
- 1
- Supplied cancellation charge if cancelled (USD)
- 35
- Additional amount payable (USD)
- $0.00
- Deposit refund (USD)
- $15.00
- Applicable final charge (USD)
- $35.00
Calculation method
Calculation method
Additional amount payable (USD)
If cancelled max(0,cancellation charge−deposit); otherwise max(0,service price−deposit).
Deposit refund (USD)
max(0,deposit−applicable final charge).
Applicable final charge (USD)
Cancellation charge if cancelled, else service price.
Symbols and units
- a
- Service price (USD)
- b
- Deposit already paid (USD)
- c
- Cancelled flag (0=no,1=yes)
- d
- Supplied cancellation charge if cancelled (USD)
Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.
Assumptions & limits
Assumptions & limits
- User-entered cancellation fee and status govern deposit settlement; no policy or legal interpretation. Supported limits: All numeric inputs and computed intermediates must remain finite. Supported numeric input magnitude is zero or 1e-12 through 1e12 in absolute value; reject values outside this bounded range. All lists/JSON record tables are limited to 100 records unless a stricter bound is stated; reject malformed record arity and wrong member types. Cancelled flag exactly 0 or 1; amounts>=0; overpaid deposits refundable under this supplied model.
Are these inputs private?
These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.