title: How to add/subract operation between two different times using timedelta?
body: <p>So i'm trying know in what time of day the man will end running. When in last line of code, trying to use  an operator <strong>addition</strong> this error is popping out. What i'm doing wrong?</p>
  <blockquote>
  <p>TypeError: unsupported operand type(s) for +: 'datetime.time' and 'datetime.timedelta'</p>
  </blockquote>
  <pre><code>import datetime
  # first run, 1 mile
  
  pace_minutes1 = 8
  pace_seconds1 = 15
  distance = 1  #1 mile
  b = ((pace_minutes1 * 60) + pace_seconds1) * distance
  print(b)
  
  # second run, 3 mile
  pace_minutes2 = 7
  pace_seconds2 = 12
  distance = 3  # 3 miles
  a = ((pace_minutes2 * 60) + pace_seconds2) * distance
  print(a)
  
  # third run, 1 mile run
  pace_minutes3 = 8
  pace_seconds3 = 15
  distance = 1 # 1 mile
  c = ((pace_minutes3 * 60) + pace_seconds3) * distance
  print(c)
  
  x = (a + b + c)
  print(x, &quot;seconds&quot;)
  
  time = datetime.timedelta(seconds=x) # converse value &quot;x&quot; seconds to time (h,m,s)
  print(&quot;All running time will gonna take&quot;,time,&quot;seconds&quot;) # total time spent running
  start_time = datetime.time(6,52,0) # time from where he started running
  print(&quot;The running started in&quot;,start_time)
  end_time = (start_time + time) # time when he ended running
  print(end_time)
  </code></pre>