---
url: >-
  /statelake/scripting-reference/functions-and-procedures/accounting-functions/taxamount.md
---

# TaxAmount

**TaxAmount** returns the amount of tax that is applicable for the net amount aValue, at the tax rate specified by **aTaxRate**.

The **aTaxRate** parameter is given as a percentage only, and must be a value between 0 and 100 – e.g. 12.5 is 12.5%.

**Declaration**: Function TaxAmount( aValue, aTaxRate : Extended) : Extended

An example follows.

```pascal
Procedure OnMapEvent(var Value:variant);
begin
  Value :=  TaxAmount(2867.56,15);      // returns 430.134
  Value :=  TaxAmount(100.00,12.5);     // returns 12.5
  Value :=  TaxAmount(-2867.56,15);     // returns -430.134
end;
```
