Loading

Calculate Salesforce Opportunity Amount and Quote Total Price

Veröffentlichungsdatum: Aug 18, 2026
Beschreibung

When looking at the standard fields "Amount" or "Total Price" on the Opportunity and Quote object respectively, it may appear that the value is off by a few cents if compared to a manually calculated sum of all associated Products.

This occurs because of the way that the Amount and Total Price fields are calculated.

Lösung

How the Calculation Works

The Total Price of each line item (Product) is calculated as follows: `(UnitPrice * Quantity) * Discount`. Then, the un-rounded Total Price of each line item is summed together to get the Opportunity Amount or Quote Total Price.

Why This Happens

Because the un-rounded per-line number is summed rather than the rounded (displayed) number, there may be a small discrepancy when comparing the total to a manually calculated result using rounded line item values. By summing the un-rounded figures, Salesforce ensures that the Amount and Total Price on the Opportunity and Quote respectively are precise and exact — rather than compounding small rounding errors across many line items.

Example: Say an Opportunity has 3 line items, each with an un-rounded Total Price of $9.995. Displayed (rounded) on screen, each line item shows as $10.00, so a manual sum of the displayed values gives $30.00. But Salesforce sums the un-rounded values ($9.995 × 3 = $29.985), which then rounds to $29.99 for the Opportunity Amount — a 1 cent difference from the manually calculated total.

Nummer des Knowledge-Artikels

000385918

 
Laden
Salesforce Help | Article