Sample Pricing Formulas

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

Required Editions

Available in: both Salesforce Classic and Lightning Experience
Available in: Essentials, Group, Professional, Enterprise, Performance, Unlimited, and Developer Editions

For details about using the functions included in these samples, see Formula Operators and Functions by Context.

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