import re


def parse_waiting_time_data(waiting_time_data):
    """Parse waiting time string to minutes"""
    numbers = re.findall(r'\d+', waiting_time_data)

    if len(numbers) == 0:
        waiting_time = 0
    elif "min" in waiting_time_data:
        waiting_time = int(numbers[0])
    elif "hour" in waiting_time_data:
        waiting_time = int(numbers[0]) * 60
    else:
        waiting_time = int(numbers[0]) * 60 + int(numbers[1])

    return waiting_time