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

***

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

# Function: calculateTotalQuantity()

> **calculateTotalQuantity**(`quantities`, `startQuantity`): `number`

Calculates the total quantity by summing up the given quantities.

## Parameters

• **quantities**: `number`[]

The quantities to be summed up.

• **startQuantity**: `number` = `0`

The starting quantity for the calculation.

## Returns

`number`

The persisted total quantity.

## Defined in

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