---
schema_version: "1"
id: 14e607b9dad3ebac78294d5042ae1c55d3a79097af38b6b9a89c829a51186f62
title: Sample Metric Conversion 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_metrics.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.useful_advanced_formulas_metrics.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ef26ac1ecc4b60a3b91461e0ba041e84c6001cd2282c60dab768f9ae254548df
description: Convert temperatures from Celsius to Fahrenheit and distances from miles to kilometers.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Sample Metric Conversion Formulas

Convert temperatures from Celsius to Fahrenheit and distances from miles to kilometers.

### 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 Operators and Functions by Context](https://help.salesforce.com/s/articleView?id=platform.customize_functions.htm&release=264.0.0&type=5 "Use these operators and functions when building formulas. All functions are available everywhere that you can include a formula, such as formula fields, validation rules, approval processes, and workflow rules, unless otherwise specified.").

## Temperature Conversion

This formula converts Celsius degrees to Fahrenheit.

`1.8 * degrees_celsius__c + 32`

## Unit of Measure Conversion

This formula converts miles to kilometers.

`Miles__c * 1.60934`