def METHOD_NAME(query: ProcessableQuery[Table]) -> Optional[int]:
    from_date, to_date = get_time_range_estimate(query)
    if from_date is None or to_date is None:
        return None
    else:
        return (to_date - from_date).days