title: python repeating countdown timer for discord.Py
body: <p>I'm trying to make a python bot and as one off the commands i want to dsiplay how long it will be until the server restarts (11pm est) every day.</p>
  
  <p>this is the code i wrote but it gives some weird outputs sometimes, when it's midnight it returns 40 hours until restart.</p>
  
  <p>Can anyone help me out here?</p>
  
  <pre><code>@client.command()
  async def gettime(self):
      now = datetime.now()
      # 11 est == 17 gmt+1
      reset = datetime.strptime('16:00', '%H:%M')
      if now == reset:
          await self.send('the restart is happening now')
      elif now &lt; reset:
          untilrestarthour = reset.hour - now.hour
          untilrestartminute = 60 - now.minute
          await self.send(f'the restart is happening in {untilrestarthour} hours and {untilrestartminute}''s ')
      elif now &gt; reset:
          untilrestarthour = 24 - (now.hour - reset.hour)
          untilrestartminute = 60 - now.minute
          await self.send(f'the restart is happening in {untilrestarthour} hours and {untilrestartminute} minute''s ')
      else:
          await self.send("error")
  
  </code></pre>