code: def magic_api(word):
      
      result = sum(ord(x)-65 + randint(1,50) for x in word)
      delta = timedelta(seconds=result)
      cached_until = datetime.now() + delta
      return result, cached_until
docs: This is our magic API that we're simulating.
      It'll return a random number and a cache timer.