title: distribute accumulated working hours through days
body: <p>I have Date time when engine has started working and how long was it working. but sometimes it can work more than 24  Hours. </p>
  
  <p>if it worked for 28 Hours on the starting date i will have record </p>
  
  <pre><code>Name          started_working    Finished working     hours_worked 
  obj-00123     07/02/2018 13:30   08/02/2018 17:30     28 
  </code></pre>
  
  <p>I need to to have record that will show that engine has worked for 10:30 in 07 and 17:30 in 08.</p>
  
  <pre><code>Name          started_working    Finished working     hours_worked 
  obj-00123     07/02/2018 13:30   07/02/2018 00:00     10:30 
  obj-00123     07/02/2018 13:30   08/02/2018 17:30     17:30 
  </code></pre>
  
  <p>or something like that.  I don't have any idea how can i get this done. can you give me some clues. i dont ask for writing code if its not too easy. </p>
  
  <p>thank you</p>
  
  <p><img src="https://i.stack.imgur.com/bJ9lb.png" alt="enter image description here"></p>