class_docstr: HolidayCalendar implementation.
  
  Unlike BoundedHolidayCalendar, doesn't require specifying calendar bounds, and
  supports weekends and holiday supplied as `Tensor`s. However, it is
  (potentially significantly) slower than the dates.HolidayCalendar
  implementation.
class_docstr_tok: ["HolidayCalendar","implementation",".","Unlike","BoundedHolidayCalendar",",","does","n't","require","specifying","calendar","bounds",",","and","supports","weekends","and","holiday","supplied","as","`","Tensor","`","s",".","However",",","it","is","(","potentially","significantly",")","slower","than","the","dates.HolidayCalendar","implementation","."]
docstr: Calculates number of business days in a period.
  
  Includes the dates in `date_tensor`, but excludes final dates resulting from
  addition of `period_tensor`.
  
  Args:
    date_tensor: `DateTensor` of starting dates.
    period_tensor: PeriodTensor, should be broadcastable to `date_tensor`.
  
  Returns:
     An int32 Tensor with the number of business days in given periods that
     start at given dates.
docstr_tok: ["Calculates","number","of","business","days","in","a","period",".","Includes","the","dates","in","`","date_tensor","`",",","but","excludes","final","dates","resulting","from","addition","of","`","period_tensor","`",".","Args",":","date_tensor",":","`","DateTensor","`","of","starting","dates",".","period_tensor",":","PeriodTensor",",","should","be","broadcastable","to","`","date_tensor","`",".","Returns",":","An","int32","Tensor","with","the","number","of","business","days","in","given","periods","that","start","at","given","dates","."]
code: def business_days_in_period(self, date_tensor, period_tensor):
      """Calculates number of business days in a period.
  
      Includes the dates in `date_tensor`, but excludes final dates resulting from
      addition of `period_tensor`.
  
      Args:
        date_tensor: `DateTensor` of starting dates.
        period_tensor: PeriodTensor, should be broadcastable to `date_tensor`.
  
      Returns:
         An int32 Tensor with the number of business days in given periods that
         start at given dates.
  
      """
      return self.business_days_between(
          date_tensor, date_tensor + period_tensor
      )
  
file_path: tf-quant-finance/tf_quant_finance/datetime/unbounded_holiday_calendar.py
imports: import tensorflow.compat.v2
  from tf_quant_finance.datetime import constants
  from tf_quant_finance.datetime import date_tensor
  from tf_quant_finance.datetime import date_utils
  from tf_quant_finance.datetime import holiday_calendar
  from tf_quant_finance.datetime import holiday_utils
  from tf_quant_finance.datetime import periods
label_desc: Use image node_id 9 for calling the UnboundedHolidayCalendar obj's underlying member method code with example usage: obj.business_days_in_period(date_tensor, period_tensor) and returns: self