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

***

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

# Function: calculateTotalPriceWithTaxes()

> **calculateTotalPriceWithTaxes**\<`T`\>(`price`, `taxes`?, `quantity`?, `options`?): [`PriceSummary`](../interfaces/PriceSummary.md)\<`T`\>

Calculates the total price of an item including tax.

## Type Parameters

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

## Parameters

• **price**: `number`

The price of the item.

• **taxes?**: [`CalculatedTax`](../type-aliases/CalculatedTax.md)\<`T`\>[]

The taxes to apply.

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

The quantity of items (default: DEFAULT_QUANTITY).

• **options?**

The options to apply.

• **options.skipRounding?**: `boolean`

Whether to skip rounding the price. Defaults to false.

## Returns

[`PriceSummary`](../interfaces/PriceSummary.md)\<`T`\>

The total price, including tax.

## Defined in

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