vat_calc
Calculate VAT amount and total for a given price, with adjustable rate and inclusive/exclusive option.
Instructions
Calculate VAT (Value Added Tax) amounts and totals.
Parameters:
amount — Price amount.
rate — VAT rate percentage (default: 20.0).
inclusive — True if amount includes VAT (default: True), False if exclusive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| rate | No | ||
| inclusive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |