# Excesses

The 'Excess' step allows you to set rules around adding compulsory excesses to a quote, based on any factor.

<figure><img src="https://1110149073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu89vYHjuY9Vj4vhZX5IZ%2Fuploads%2FlODW1uc4oimWeFgFl0AI%2FScreenshot%202024-04-29%20at%2017.37.30.png?alt=media&#x26;token=7c66f729-7432-4b0a-870c-7f8290c290db" alt="" width="375"><figcaption><p>The Excesses step</p></figcaption></figure>

{% hint style="info" %}
**How might you use the 'Excess' step?**

If you were building a pricing model for insurance, there may be certain quotes or customers that you want to add compulsory excess rules for.

For example, you may want to create a rule to insist on a specific excess cost based on the age of a driver being under a certain age.
{% endhint %}

## 1. Add a new excess

Once you've added the 'Excess' step and named it, like you will with any other step in the Build tool ([more on that here](https://swallow-1.gitbook.io/swallow/build/step-builder)), you'll need to add rules for which excesses will apply to which quotes.

To get started, click the cog symbol in the top right of the 'Excess' step.

Once you've opened the step, click the 'ADD' button in the top right of excess table.

<figure><img src="https://1110149073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu89vYHjuY9Vj4vhZX5IZ%2Fuploads%2FK2PFa4BvCRlReI4JGFwG%2FScreenshot%202024-04-22%20at%2017.24.31.png?alt=media&#x26;token=992dc539-36e8-484f-82d7-3bb7f5eb85e0" alt="" width="95"><figcaption><p>ADD button for new excesses</p></figcaption></figure>

## 2. Create your excess

There are three elements to each new excess you add, whether you're adding a new excess or editing an existing one.

### Name

Give your excess a descriptive name. This identify the excess in your table, so make sure it's unique and easy to understand.

### Amount

Set the amount of your excess, including decimals if you want to. We don't accept currency symbols, so only use numbers here.

### Expression

Write an expression to determine which quotes are offered the excess. This will need to include which data input(s) you want to be looking at, and the conditions that you use to offer a specific excess.

Here's an example of how you would structure an expression using the customer's age as an input, choosing to offer a specific excess for any customers aged under 21 years:

`({{proposer_age}}<21)`

To learn how to structure your expression in more detail, debug and to see the full glossary, check out our full page on [syntax](https://swallow-1.gitbook.io/swallow/your-first-model/essential-concepts/syntax "mention").

<figure><img src="https://1110149073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu89vYHjuY9Vj4vhZX5IZ%2Fuploads%2FNwzrxtEaRCBt3KscMixD%2FScreenshot%202024-05-11%20at%2018.25.01.png?alt=media&#x26;token=9ae1b6d0-2af8-4140-b2c3-193102800958" alt="" width="563"><figcaption><p>Add new excess dialogue</p></figcaption></figure>

## 3. Save your excess

Once you're happy with the excess you've added, just press the 'Save' button in the bottom right of the modal and you're ready to add more excesses to the table if you want to.

<figure><img src="https://1110149073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu89vYHjuY9Vj4vhZX5IZ%2Fuploads%2FhZfdZksYADcmIRJKvgKw%2FScreenshot%202024-04-29%20at%2013.07.37.png?alt=media&#x26;token=78754f60-9edb-487d-aeaf-c5164a94c872" alt="" width="69"><figcaption><p>Save exclusion button</p></figcaption></figure>

## 4. Add, edit or delete excesses

To add more new excesses, repeat the steps above. Alternatively, you can edit and delete excesses you've already added.&#x20;

To bulk edit all excesses, you can use the buttons to the top left of the excesses table download as a CSV, edit and then re-upload your excesses table.

<figure><img src="https://1110149073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu89vYHjuY9Vj4vhZX5IZ%2Fuploads%2Fvga1sH0AjeKpdNdUyCrQ%2FScreenshot%202024-05-11%20at%2018.16.11.png?alt=media&#x26;token=fbda9663-f8c9-465b-b34e-8f0b1325766d" alt="" width="175"><figcaption><p>Upload and download buttons</p></figcaption></figure>

## 5. Save the step

Once you're happy with all of the excesses in your table, just press the 'Save' button in the top right of the screen. You're now ready to head back to the 'Build' screen.

<figure><img src="https://1110149073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu89vYHjuY9Vj4vhZX5IZ%2Fuploads%2FSsAAZhH3dnz67i3jRdKZ%2FScreenshot%202024-05-11%20at%2016.21.13.png?alt=media&#x26;token=30849d88-4e70-4b00-9380-77b35601f69e" alt="" width="111"><figcaption><p>Save step button</p></figcaption></figure>
