title: Calculating Total Job Experience
body: <p>I need to calculate the total job experience as year value. Users add experiences with starting and ending dates to their resumes, just like Linkedin. But there is no any certain pattern. For instance;</p>
  
  <p>A user may have a resume like that;</p>
  
  <blockquote>
    <p><strong>Experience 2</strong>
    08.2012 - 01.2015</p>
    
    <p><strong>Experience 1</strong>
    01.2011 - 01.2013</p>
  </blockquote>
  
  <p>The user started their second experience while the first hasn't finished yet. So resumes may have many overlapping experiences. Overlapping also may occur between more than 2. So I need to consider many cases.</p>
  
  <p>I tried to visualise the experience and year relationship for you.</p>
  
  <p><a href="https://i.stack.imgur.com/PSVHS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PSVHS.png" alt="enter image description here"></a></p>
  
  <p>I just need to develop an algorithm covering all the cases for this issue.</p>