> ## Documentation Index
> Fetch the complete documentation index at: https://docs.personal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Computed Fields

> Fields that calculate their own value.

A computed field works out its value from a formula instead of being typed in. An order's total, for example, is the sum of its items' prices times their quantities.

#### What a formula can do

* **Count or sum** across linked records, like the number of items on an order.
* **Pull a value** from a related item, like a product's price.
* **Do basic math** with other fields.

Money keeps its currency. If an order mixes currencies, the total is left empty rather than showing a wrong number.

#### Once or live

* **Once**: calculated when the record is saved, then kept. Use this for things like when an order was placed.
* **Live**: recalculated whenever something it depends on changes.

### Adding a computed field

1. Open **Vocabulary** and select a kind.
2. Open a field, or add a new one.
3. Expand the optional **Computed value** section.
4. Build the formula with the visual builder, or switch to a manual formula.
5. Check the live sample preview, then save.

Formulas are checked when you save, so a broken formula is caught before it goes live.

### Overriding a built-in field

Some built-in kinds come with computed fields, such as an order's **placed at**, **item count** and **total price**. Your workspace can replace any of them with its own formula. If you switch back to the built-in version, you won't lose any values.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.