def expired(now, started, limit):
    return int((now - started).total_seconds()) > limit
