---
schema_version: "1"
id: 41cd2cfb75f1bacf9dd9d246887adeb96384c31c54e8544e440835f5e15a0d7b
title: Sample Expense Tracking Formulas
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/useful_advanced_formulas_expense_tracking.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.useful_advanced_formulas_expense_tracking.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3d571ed87a0cfe4409b19f1b1631c13598a7b9c6f920b9860a51056201d1da87
description: Create identifiers from trip and expense information and calculate mileage reimbursement at a set rate per mile.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Sample Expense Tracking Formulas

Create identifiers from trip and expense information and calculate mileage reimbursement at a set rate per mile.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Essentials</strong>, <strong>Group</strong>, <strong>Professional</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

For details about using the functions included in these samples, see [Formula and Operator Functions](https://help.salesforce.com/s/articleView?id=platform.customize_functions.htm&type=5&language=en_US).

## Expense Identifier

This formula displays the text Expense- followed by trip name and the expense number. This field is a text formula field that uses an expense number custom field.

```

        "Expense-" &
                    Trip_Name__c & "-" & ExpenseNum__c
      
```

## Mileage Calculation

This formula calculates mileage expenses for visiting a customer site at 35 cents a mile.

`Miles_Driven__c * 0.35`