The first 100 units of the resource are charged at 1.00. The next 100 000 units of the resource are charged at 0.80, and everything above is charged at 0.50. If a customer consumes 102 units of the resource, they will be charged at 100×1.0 + 2×0.8 = 101.6
For some cases, Microsoft offers a free amount of Azure resources. It is not precisely tiered pricing, but it requires the same approach. A resource has different prices depending on ranges, just starting from zero.
The lack of ability to follow the tiered pricing model might cause huge discrepancies, especially for big customers.
Solution: ActivePlatform retrieves from Microsoft resource unit prices for every range and applies the suitable price for the consumed amount. Usage tiers are reset every billing period. Included resources are billed at zero price within the free amount.