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

***

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

# Function: calculateItemDue()

> **calculateItemDue**\<`T`\>(`item`): `number`

Calculates the amount due for an item based on its price and the amount already paid.

## Type Parameters

• **T** *extends* `object`

The type of the item, which must have a `price` and `paidAmount` property.

## Parameters

• **item**: `T`

The item for which to calculate the amount due.

## Returns

`number`

The amount due for the item.

## Defined in

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