---
schema_version: "1"
id: 8180280d1cd3669abfea626c21e91511fbe583b77c59278dd2138c8ecf028111
title: Sample Pricing 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_pricing.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.useful_advanced_formulas_pricing.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2cefc646a67eada3882a73b7148127ea2f347921675f84c1eaaa3151666eaf87
description: Calculate a total amount from unit price and quantity, and derive a per-user price from total license revenue.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Sample Pricing Formulas

Calculate a total amount from unit price and quantity, and derive a per-user price from total license revenue.

### 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.").

## Total Amount

This formula calculates a total amount based on unit pricing and total units.

`Unit_price__c * Total_units__c`

## User Pricing

This formula calculates a price per user license.

`Total_license_rev__c / Number_user_licenses__c`