tax_rate
Retrieve the standard VAT rate for the UK on a specific date, or the base sales-tax rate for a US state, ensuring correct tax calculations on invoices.
Instructions
USE THIS before calculating VAT or sales tax on an invoice/quote — never recall the rate from memory, it is DATE-SENSITIVE. GB returns the UK standard VAT rate that applied on the given date (handles historical/temporary changes). US has no national VAT (returns 0); pass a state code for the state base sales-tax rate. Always pass the invoice date for GB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No | GB or US (default GB). | |
| date | No | The invoice date (YYYY-MM-DD); default today. | |
| state | No | US state code (e.g. CA) for sales tax. |