Skip to content

Commit 1953466

Browse files
Merge pull request #295427 from bandersmsft/acd-cost-rounding
MCM - Update for ACD cost rounding
2 parents eb28836 + 0177220 commit 1953466

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

articles/cost-management-billing/costs/understand-cost-mgt-data.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,32 @@ Whether you use the Cost Management APIs, Power BI, or the Azure portal to retri
156156

157157
## Cost rounding
158158

159-
Costs shown in Cost Management are rounded. Costs returned by the Query API aren't rounded. For example:
159+
Costs shown in Cost Management are rounded. Costs returned by the Query API and those shown in your cost and usage data files aren't rounded. For example:
160160

161161
- Cost analysis in the portal - Charges are rounded using standard rounding rules: values more than 0.5 and higher are rounded up, otherwise costs are rounded down. Rounding occurs only when values are shown. Rounding doesn't happen during data processing and aggregation. For example, cost analysis aggregates costs as follows:
162-
- Charge 1: $0.004
162+
- Charge 1: $0.004
163163
- Charge 2: $0.004
164-
- Aggregate charge rendered: 0.004 + 0.004 = 0.008. The charge shown is $0.01.
164+
- Aggregate charge rendered: 0.004 + 0.004 = 0.008. The charge shown is $0.01.
165165
- Query API - Charges are shown at eight decimal places and rounding doesn't occur.
166+
- Cost and usage data files - Rounding doesn't occur.
167+
168+
### Cost rounding for Azure Commitment discount
169+
170+
Currency rounding for Azure Commitment discount (ACD) takes place on the unit rate aspect of the effective rate. Currency rounding depends on currency *precision* (or "minimal accountable currency unit" or "minor units"). For most world currencies, the precision is 1/100. It corresponds to two digits after the decimal point.
171+
172+
For example, assume an ACD is a 12.5% discount:
173+
174+
- After a 0.125 discount on a $0.09 market price, it equals 0.07875. When rounded, it’s a $0.08 unit rate.
175+
- After a 0.125 discount on a 0.6 market price, it equals 0.525. When rounded, it’s a $0.53 unit rate.
176+
- The total cost equals the billable quantity, multiplied by the rounded unit rate.
177+
178+
Charges are rounded using standard rounding rules: values of 0.5 and higher are rounded up, otherwise costs are rounded down.
179+
180+
The *effective price* can be specified for an Azure meter per one hour, while a billable unit might be 10 hours. In such cases, currency rounding happens on unit price and effective price per hour is scaled down 10 times the value.
181+
182+
For example, an unrounded single unit price after a 0.125 discount is applied to a per-hour price of 0.018 resulting in 0.01575000000. The billable QuantityPerUnit for the meter is 10 (hours), so Azure rounds to cents. The calculation is 10 * 0.01575 = 0.1575 and then gets rounded to $0.16. The *Quantity Per Unit* is rounded for your currency. In this example, it’s $0.16 per 10 hours. Because the EffectivePrice is per one hour, the currency-rounded unit price of 10 hours gets scaled down 10 times. Then, the Effective price per once per hour is computed and it has three digits after the decimal point. That results in $0.16 / 10 equaling $0.016.
183+
184+
Your usage and charges file shows all of the data involved in rounding. You can download the file from the Azure portal. For more information, see [Download usage and charges data](../understand/download-azure-daily-usage.md).
166185

167186
## Historical data might not match invoice
168187

articles/cost-management-billing/understand/download-azure-daily-usage.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ If you have a Microsoft Customer Agreement (MCA), you must be a billing profile
2020

2121
Based on the type of subscription that you use, options to download your usage and charges vary.
2222

23+
Your cost and usage data files show unrounded data. For more information about rounding, see [Cost rounding](../costs/understand-cost-mgt-data.md#cost-rounding).
24+
2325
If you want to get cost and usage data using the Azure CLI, see [Get usage data with the Azure CLI](../automate/get-usage-data-azure-cli.md).
2426

2527
## Download usage for MOSP billing accounts

0 commit comments

Comments
 (0)