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

***

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

# Function: ~~calculateTotalPriceWithTax()~~

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

Calculates the total price of an item including tax.

## Parameters

• **price**: `number`

The price of the item.

• **isTaxInclusive**: `boolean`

Whether the price already includes tax.

• **taxPercent?**: `number`

The tax percentage to apply, if `isTaxInclusive` is `false`.

• **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 total price, including tax.

## Deprecated

use the new calculateTotalPriceWithTaxes

## Defined in

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