# Calculate working in time minus 3 or 4 break times in Python

**URL:** <https://discuss.circleci.com/t/calculate-working-in-time-minus-3-or-4-break-times-in-python/45426>\
**Category:** Programming Languages\
**Created:** [September 17, 2022, 7:00pm UTC](https://discuss.circleci.com/t/calculate-working-in-time-minus-3-or-4-break-times-in-python/45426 "2022-09-17T19:00:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mochi](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/mochi/32/31088_2.png) [@Mochi](https://discuss.circleci.com/u/Mochi)\
**Post date:** [September 17, 2022, 7:00pm UTC](https://discuss.circleci.com/t/calculate-working-in-time-minus-3-or-4-break-times-in-python/45426/1 "2022-09-17T19:00:52Z")

</div>

Hi, i am new to coding world.  
i am working in a automobile manufacturing company as a labour.  
we have 2 shifts and we change shift every week.

in day shift we start from 6:30 to 15:35, with 3 breaks. 8:30 to 8:40, 10:40 to 11:25 and 13:25 to13:35. and another short break at 15:35 to 15:40 if we work overtime.

in 1 shift we can do 2 kind or work, and the time is count separately.  
for example in line 1, I worked from 6:30 to 11:55 and work on line 3 from 12:00 to 15:10

at the end we spent times to calculate total working minutes minus those breaktimes (work on line 1, line 3 and the total of working minutes)

Questions:  
I keep wondering if coding with Python can help me count faster? If yes, how\_  
thank you in advance,

Sincerely yours,  
Charlie
