code: def get_candles_number_from_minutes(unit, candle_size, minutes):
      """
      Get the number of bars needed for the given time interval
      in minutes.
  
      Notes
      -----
      Supports only "T", "D" and "H" units
  
      Parameters
      ----------
      unit: str
      candle_size : int
      minutes: int
  
      Returns
      -------
      int
  
      """
      if unit == "T":
          res = float(minutes) / candle_size
      elif unit == "H":
          res = (minutes / 60.0) / candle_size
      else:  # unit == "D"
          res = (minutes / 1440.0) / candle_size
  
      return int(math.ceil(res))
  
file_path: catalyst/catalyst/exchange/utils/datetime_utils.py
imports: import calendar
  import math
  import re
  from datetime import datetime, timedelta, date
  import pandas
  import pytz
  from catalyst.exchange.exchange_errors import InvalidHistoryFrequencyError, InvalidHistoryFrequencyAlias
label_desc: Use image node_id 13 for calling a global function with example usage: get_candles_number_from_minutes(unit, candle_size, minutes) and returns: int