@staticmethod
def get_interval_pos(start, interval_length):
    """ Get position of time interval """
    num_intervals = 60 * 24 / interval_length
    minutes = start.hour * 60 + start.minute
    day_progress = minutes / (60 * 24)
    return int(day_progress * num_intervals)
