# Billing Time Rounding Always Up seems not working

**URL:** <https://community.yeti-switch.org/t/billing-time-rounding-always-up-seems-not-working/505>\
**Category:** Yeti-Switch\
**Created:** [June 2, 2022, 10:58pm UTC](https://community.yeti-switch.org/t/billing-time-rounding-always-up-seems-not-working/505 "2022-06-02T22:58:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![roco](https://community.yeti-switch.org/user_avatar/community.yeti-switch.org/roco/32/217_2.png) [@roco](https://community.yeti-switch.org/u/roco)\
**Post date:** [June 2, 2022, 10:58pm UTC](https://community.yeti-switch.org/t/billing-time-rounding-always-up-seems-not-working/505/1 "2022-06-02T22:58:49Z")

</div>

Hello, i’ve set billing rounding for disconnection time to be always up, it should do a rounding based on milliseconds but it seems not working. What I see on db for billed calls is not a rounded closing time, like this:  
time\_connect: 2022-06-02 21:11:05.157665+02  
time\_end 2022-06-02 21:11:32.066346+02  
but I was expecting it would be 2022-06-02 21:11:33.000000+02  
duration: 27 seconds, again I was expecting 28  
Please let me know.  
Thanks a lot

---

<div class="post-metadata">

**Author:** ![dmitry.s](https://community.yeti-switch.org/user_avatar/community.yeti-switch.org/dmitry.s/32/179_2.png) [@dmitry.s](https://community.yeti-switch.org/u/dmitry.s)\
**Post date:** [June 3, 2022, 12:10am UTC](https://community.yeti-switch.org/t/billing-time-rounding-always-up-seems-not-working/505/2 "2022-06-03T00:10:28Z")

</div>

There is no disconnect time rounding. We are rounding call duration: 32.066−5.157 = 26.909. then 26.909 rounded up according to your settings. Result is 27. Configuration variable also called CALL DURATION ROUND MODE

---

<div class="post-metadata">

**Author:** ![roco](https://community.yeti-switch.org/user_avatar/community.yeti-switch.org/roco/32/217_2.png) [@roco](https://community.yeti-switch.org/u/roco)\
**Post date:** [June 3, 2022, 8:54am UTC](https://community.yeti-switch.org/t/billing-time-rounding-always-up-seems-not-working/505/3 "2022-06-03T08:54:40Z")

</div>

Yes, that absolutely make sense. I confused call duration and time end. But most terminations are making rounding based also on time end, I think you should implement also this functionality.  
Thanks a lot

---

<div class="post-metadata">

**Author:** ![roco](https://community.yeti-switch.org/user_avatar/community.yeti-switch.org/roco/32/217_2.png) [@roco](https://community.yeti-switch.org/u/roco)\
**Post date:** [June 10, 2022, 10:06am UTC](https://community.yeti-switch.org/t/billing-time-rounding-always-up-seems-not-working/505/4 "2022-06-10T10:06:49Z")

</div>

What I would like to see is rounding up based on:  
time\_connect and/or time\_end milliseconds time

and on reports I’d like to see duration distinct on 2 fields, one for customer call duration and the second as billed duration.  
thanks
