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

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