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

***

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

# Function: calculateItemUnitPriceWithTaxes()

> **calculateItemUnitPriceWithTaxes**\<`T`\>(`unitPrice`, `taxes`?): `number`

Calculates the item unit price based on the given unit price and taxes.

## Type Parameters

• **T** *extends* [`ITaxBase`](../interfaces/ITaxBase.md)

## Parameters

• **unitPrice**: `number`

The unit price before tax.

• **taxes?**: `T`[]

The taxes to apply.

## Returns

`number`

The calculated unit price.

## Defined in

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