Description
Calculate invoice tax under a supplied discount basis.
Pharmacy administration separates inventory, document identity, authorization, service timing and financial records from clinical decisions. Matching labels or a positive local predicate can reconcile supplied metadata without authenticating medicine, establishing lawful supply or determining appropriate care.
Calculate invoice tax under a supplied discount basis.
When to use this tool
Use Pharmacy Service Invoice Tax Basis when checking the stated pharmacy record, inventory, timing, coverage or cost convention.
How to use the tool and how it works
- Enter serviceNet, taxableFraction, taxRate, discount, discountBeforeTax. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read taxableBase, tax, total. Use the output convention below.
Calculate invoice tax under a supplied discount basis. Require serviceNet >= discount >= 0, taxRate >= 0 and taxableFraction in [0,1]; taxableBase uses discounted net only when discountBeforeTax, tax = base*rate, total = net-discount+tax.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| serviceNet | Service Net | Required. Finite number. |
| taxableFraction | Taxable Fraction | Required. Finite number; minimum 0; maximum 1. |
| taxRate | Supplied fractional tax rate; 0.2 means 20%. Applicable tax treatment is not selected. | Required. Finite number; minimum 0. |
| discount | Discount | Required. Finite number; minimum 0. |
| discountBeforeTax | Discount Before Tax | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| taxableBase | Taxable Base | Required. Finite number. |
| tax | Tax | Required. Finite number. |
| total | Total | Required. Finite number. |
{
"input": {
"serviceNet": 100,
"taxableFraction": 0.5,
"taxRate": 0.2,
"discount": 10,
"discountBeforeTax": true
},
"output": {
"taxableBase": 45,
"tax": 9,
"total": 99
}
} Limitations and assumptions
- Tax rates are fractions, not percentage numbers; legal tax treatment, exemptions and rounding are not selected.
- 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
Use verified medicine/service records and applicable professional procedures; consult a qualified pharmacist or other appropriate professional for clinical, legal or safe-supply decisions.
References
Similar or alternative tools
- Pharmacy Voucher Copay Order Term
Allocate a pharmacy bill under a supplied voucher/copay order.
- Pharmacy Package Unit Price Supplement
Return gross and net unit prices with an explicit supplement.