[**@bondsports/general**](../README.md) • **Docs**

***

[@bondsports/general](../globals.md) / calculateDue

# Function: calculateDue()

> **calculateDue**(`price`, `paidAmount`): `number`

Calculates the amount due based on the price and the amount already paid.

## Parameters

• **price**: `number`

The total price of the item.

• **paidAmount**: `number` = `0`

The amount already paid. Defaults to 0.

## Returns

`number`

The amount due.

## Defined in

[utils/price.util.ts:464](https://github.com/Bond-Sports/bondUtils/blob/545f16ceb055481acfd7641d7809c0f252d3a5e6/packages/general/src/utils/price.util.ts#L464)
