calc_vat
Compute Russian VAT (НДС) by adding it to a net amount or extracting it from a gross amount. Supports rates 0, 5, 7, 10, and 20%.
Instructions
Compute Russian VAT (НДС): add on top of net or extract from gross (NK RF art. 164, 168).
When to use
Invoice line: net→gross (mode=add) or gross→net+VAT (mode=extract).
USN taxpayers on special VAT rates 5% or 7% (from 2025 rules).
Quick sanity check before bookkeeping export.
When NOT to use
VAT declaration filing, multi-rate invoices, or export/zero-rate cases.
Mixed taxable/exempt lines — sum per line in accounting software.
Parameters
amount: base sum in RUB (net for add, gross for extract).
rate: 20, 10, 0, 5, or 7 (percent).
mode:
add|extract.
Returns: {net, vat, gross, rate, mode, formula, article, disclaimer, snapshot_date}.
Limitations: read-only, offline, single-rate line; no side effects. Example: amount=100000, rate=20, mode=add → vat=20000, gross=120000.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | add — начислить сверху; extract — выделить из суммы. | add |
| rate | No | Ставка НДС: 20/10/0 или спец 5/7 (УСН с 2025). | |
| amount | Yes | Сумма (без НДС для add, с НДС для extract). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||