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

***

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

# Function: calculatePriceFromTotalWithTaxes()

> **calculatePriceFromTotalWithTaxes**\<`T`\>(`totalPrice`, `taxes`?): `number`

Calculates the price from the total price, taking into account the taxes.
Assumes that the total price includes all taxes, meaning each tax is treated as inclusive.

## Type Parameters

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

## Parameters

• **totalPrice**: `number`

The total price.

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

The taxes to apply.

## Returns

`number`

The calculated price.

## Defined in

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