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

# DiscountAmount

**DiscountAmount** returns the amount of discount applied to **aValue**, at the discount rate specified by **aDiscPC**.

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

Refer also to  [Discounted](/statelake/scripting-reference/functions-and-procedures/accounting-functions/discounted).

Declaration:  Function DiscountAmount( aValue, aDiscPC : Extended) : Extended

Please refer to the following example.

```pascal
Procedure OnMapEvent(var Value:variant);
begin
  Value :=  DiscountAmount(100.00,25);        // returns 25
  Value :=  DiscountAmount(-546.75,15);       // returns -82.0125
  Value :=  DiscountAmount(75.45,17.5);       // returns 13.20375
end;
```
