Calculation logic and examples for Calculated Charges
This article explains the logic that calculates invoice amounts for calculated charges, including the effect of minimum and maximum fee thresholds.
This calculation process identifies eligible invoice items based on configured conditions, sums their amounts, calculates a percentage-based value, and then applies any defined minimum and maximum limits.
Example 1: Percentage above minimum, no maximum
-
Total contributing amount in the period: 13,500
-
Percentage: 25%
-
Minimum amount: 100
-
Maximum amount: not set
-
Percentage-based amount = 13,500 × 25% = 3,375
-
3,375 > 100 (minimum), so invoice amount = 3,375

Example 2: Percentage below minimum
-
Total contributing amount in the period: 100
-
Percentage: 25%
-
Minimum amount: 100
-
Maximum amount: not set
-
Percentage-based amount = 100 × 25% = 25
-
25 < 100 (minimum), so invoice amount = 100

Example 3: Percentage above maximum (cap applied)
-
Total contributing amount in the period: 13,500
-
Percentage: 25%
-
Minimum amount: 100
-
Maximum amount: 3,000
-
Percentage-based amount = 13,500 × 25% = 3,375
-
3,375 > 3,000 (maximum), so invoice amount = 3,000
