title: How to get the most date a text?
body: <p>how to calculate the difference in date in a text file for each name and calculate his stay in day's and then return the most person with his stayed days for example </p>
  
  <p>text file contain's </p>
  
  <pre><code>john 01/15 02/15
  jason 01/11 01/15
  john 02/10 02/12
  </code></pre>
  
  <p>output expected 
  ('john', 30 )</p>
  
  <p>my code </p>
  
  <pre><code>def most_stayed_person(text):
      y=[]
      f = open(text, 'rt')
      for x in f:
          y.append(x.strip())
  
      return y
  </code></pre>
  
  <p>I failed to calculate the stayed days for every person in the text file 
  can someone help me please</p>