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

***

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

# Function: ~~calculateItemUnitPrice()~~

> **calculateItemUnitPrice**(`unitPrice`, `isTaxInclusive`, `taxPercent`): `number`

Calculates the item unit price based on the given unit price, tax-inclusive status, and tax percentage.

## Parameters

• **unitPrice**: `number`

The unit price before tax.

• **isTaxInclusive**: `boolean`

A flag indicating whether the price includes tax.

• **taxPercent**: `number`

The tax percentage.

## Returns

`number`

The calculated unit price.

## Deprecated

use the new calculateItemUnitPriceWithTaxes

## Defined in

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