Step one: how is a sale classified?
By the exempt_reason column and nothing else. An empty cell means taxable. A word in it, such as resale, nonprofit or out-of-state, means the sale is treated as exempt for this worksheet and is summed under that word. The tool has no list of exemptions and does not check certificates, so the quality of the classification is the quality of your export. The requirements guide covers what to confirm.
Step two: how is the tax owed computed?
Taxable amount multiplied by the rate, rounded half up to the cent, order by order. Rounding per order is a choice: it matches how most checkout systems charge tax, and it keeps each line comparable with the collected column. A return may be computed on the period total instead, so the worksheet also shows what the total would give. In the demo the two agree at $81.72, but for 1,000 small orders they can differ by several dollars.
Step three: how are differences found?
| Case | Collected vs owed | Result |
|---|---|---|
| Taxable, charged the right tax | Within $0.01 | ok |
| Taxable, charged too little | Collected below owed by more than $0.01 | under-collected |
| Taxable, charged too much | Collected above owed by more than $0.01 | over-collected |
| Marked exempt, tax charged | Any collected amount above 0 | tax on exempt sale |
In the demo, order D-3107 has $72.00 of taxable sales and no tax charged, so $5.76 is owed and not collected. Order D-3110 is a resale sale of $410.00 with $32.80 charged. Order D-3112 charged $8.50 where $7.92 was owed.
Step four: how is the due date printed?
The date step uses the rule on the Texas Comptroller due-dates page: a report normally due on the 20th that falls on a weekend or a federal legal holiday is due the next business day. The holiday list is taken from the OPM federal holidays page for 2026 and 2027. For the December 2026 period the 20th of January 2027 is a Wednesday, so the demo date is Wednesday, January 20, 2027. The 2026 results match the sales and use tax row of the Texas chart, which shows the 22nd in June and the 21st in September and December.
What happens to a blank amount or a text amount?
A row whose amount is not a number is skipped and listed under data issues with its order reference, so it cannot silently vanish from the total. A tax_collected cell that is not a number counts as zero and is listed too, since a zero collected on a taxable order would otherwise be flagged as under-collected for the wrong reason. The issue list shows the first eight and says when there are more.
How is a result checked?
A Python engine and the browser script both run the demo and must agree on every line and total: gross $2,206.49, exempt $1,185.00, taxable $1,021.49, owed $81.72, collected $109.34. A change to a rule is made in both and rechecked.
Frequently asked questions
Is rounding per order or per period?
Per order in the worksheet; the period total is shown beside it.
Can an exempt reason be anything?
Any word. The tool sums by it and does not validate it.
How are shipping and fees treated?
They are not modelled. Leave them out of the amount unless you know how your state treats them.
What holidays are used for the due date?
U.S. federal holidays as listed by OPM for 2026 and 2027.
Official source. The due-date rule and penalty figures on this site come from Texas Comptroller due dates. Always confirm current rules, dates and rates on the official page before you rely on them.