# Formulas

With formulas, you have access to an array of manipulations and calculations you can perform on your data to create additional fields.&#x20;

Formulas can have any data type available in [Custom Fields](/pylon-docs/platform/custom-fields.md), and are simply a calculation that is performed to fill in that data field. A formula field is usable across the product anywhere custom fields are, including in views, triggers, the API, etc.

### Example: Number of Meetings

For example, a formula to calculate the number of meetings you've had with a customer in the last 90 days.

<figure><img src="/files/uAWXQSqPeG3Fl9br3kLV" alt="" width="375"><figcaption></figcaption></figure>

### Example: Usage Percentage

Here is an example of using division on two synced fields to calculate seat utilization percentage.

<figure><img src="/files/S6nMSxstK1jZVKF5CzUX" alt="" width="375"><figcaption></figcaption></figure>

### Example: Channel Members Left

The number of customer users who have left your channel in the last 30 days.

<figure><img src="/files/baLD73cWldqWYOEBC3qy" alt="" width="375"><figcaption></figcaption></figure>

### Example: Number of Feature Requests

The number of issues that are tied with engineering work (via. [Ticketing](/pylon-docs/integrations/ticketing.md) integrations).

<figure><img src="/files/EVMpzTNnnal4VPUFQtxI" alt="" width="375"><figcaption></figcaption></figure>

### Example: Lifecycle Stage

The stage of the customer (onboarding or renewal) based on their progress through the contract.

<figure><img src="/files/kwDtKnfdWwK9JFQLJQ20" alt="" width="375"><figcaption></figcaption></figure>

Examples of other formulas are:

* Calculating the number of issues that were categorized as bugs in the last 30 days
* Calculating the number of [Custom Activities](/pylon-docs/account-intelligence/activities/custom-activities.md) of a certain type that have occurred
* Creating a weighted health score across different components


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.usepylon.com/pylon-docs/account-intelligence/fields/formulas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
