Rate Calculation Example
This example shows how rating formula components are used during rate calculations.
In this scenario, a subscriber owns a Web service that charges based on data usage quantity. The rating formula charges $7.50 for every 5MB of data. The rate is applied in 10KB beats and the event unit is bytes.
- Fixed Rate = 0.0
- Variable Rate = 7.5
- Rating Formula Quantity = 5
- Rating Formula Unit = MB
- Beat = 10 KB (10240 bytes)
- Event Unit = bytes
If the total event quantity is 651 KB, there are 66 beats worth of data that can be rated:
total event quantity ÷ beat = ratable amount
651 ÷ 10 = 65.1
beat rounded up to the next whole beat = 66
To determine the charge per beat, the following equation is used:
beat × slope ÷ rating formula multiplier (converted to the event unit) = charge per beat
10240 × 7.50 ÷ (5 × 1024²) (1 megabyte = 1024² bytes)
= 76800 ÷ 5242880
= $0.01430511474
To determine the total charge, the following equation is used:
charge per beat × total number of beats = total charge
$0.01430511474 × 66 beats = $0.9441
To check the answer:
5 MB = 512 beats
512 × .01430511474 = 7.5
IT administrators must specify event beats and units when they define a service. The units must match the units used by the network provider and captured in the Diameter message before it is received by MATRIXX Engine.