def parse_interval_in_minutes(interval):
    """
    Parses the interval and tries to return its value as minutes.

    :param interval: string such as 1min, 5min, 10h, 12week and etc.
    :returns: int or None
    """

    # Pytimeparse can't handle months, so we replace 1 month with 5 weeks. 
    # The value is not exact, but it is quite acceptable for our needs
    if 'month' in interval:
        tmp = interval.replace('month', '').strip()
        if tmp.isnumeric():
            interval = "{}week".format(5 * int(tmp))

    secs = pytimeparse.parse(interval)

    if secs is not None:
        return secs / 60
    else:
        return None

    Parses the interval and tries to return its value as minutes.

    :param interval: string such as 1min, 5min, 10h, 12week and etc.
    :returns: int or None
    
src/twelvedata/utils.py