def search_day_distance(end_date, dt, env):
    tdd = env.trading_day_distance(dt, end_date)
    if tdd is None:
        return None
    assert tdd >= 0
    return tdd
dataset/ETHPy150Open quantopian/zipline/zipline/finance/risk/risk.py/search_day_distance/original