# Billing Module of Elastix

#### okle100

Hi All,

I am trying to setup the billing module of elastix but i have hard time figuring out how it works.

Here are the tests I have done, and the results from those tests:

rate = 1
rate offset = 0.000
time = 2.32
cost = 2.32

rate = 1
rate offset = 0.1
time = 2.32
cost = 2.82

rate = 1
rate offset = 0.5
time = 2.32
cost = 4.82

rate = 1
rate offset = 1.0
time = 2.32
cost = 7.32

Can someone point me in the right direction of how this billing works, and some manuals, or just plain explain what is the point of rate, and rate offset settings?

Also is it possible to setup different rates for different parts of the day. As some of the trunk providers here have different rates, for weekdays and afternoons, or it is hjust on trunk bases?

Thank you, and Best Regards

#### augustynr

Can someone explain this?

#### jackyzrk

it work by second, not by minute. If you need to make it woke by minute, you have to modify the file
/var/www/html/modules/billing_report/index.php

It's very easy.

And the offrate is added to the total cost by one time.

#### scenarist

rate=1
rate offset=0.00
time=2.32
cost=2.32

Code:
``rate=1``
means 1 \$/min = > (1/60 = 0.0166) => (0.0166 \$/sec)

Code:
``time=2.32 min``
=>
2.32min *60sec = 139.2 sec => 139.2sec * 0.0166 \$/sec = 2.32 \$

but I dont understand what means "rate offset" on another examples ?
in above examples rate offset is added on total cost by the following
rate ofsset=0.1 => added 0.5 + cost = 0.5 + 2.32 = total cost = 2.82
rate offset=0.5 => added 2.5 + cost = 2.5 + 2.32 = total cost = 4.82
rate offset=1 => added 5 + cost = 5 + 2.32 = total cost = 7.32

but I dont know how is calculate rate offset ?

### Members online

No members online now.

Threads
30,992
Messages
131,106
Members
17,716
Latest member
Orbit114