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

***

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

# Function: ~~calculatePriceWithTax()~~

> **calculatePriceWithTax**(`price`, `taxPercent`?, `quantity`?, `skipRounding`?): `number`

Calculates the price with tax.

## Parameters

• **price**: `number`

The price of the item.

• **taxPercent?**: `number`

The tax percentage to apply (optional).

• **quantity?**: `number` = `DEFAULT_QUANTITY`

The quantity of items (default: DEFAULT_QUANTITY).

• **skipRounding?**: `boolean` = `false`

Whether to skip rounding the price. Defaults to false.

## Returns

`number`

The calculated price with tax.

## Deprecated

use the new calculateTotalPriceWithTaxes

## Defined in

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