def getduration_input():
    """
    Method collects user inputs for duration in seconds, minimum value is 0 and maximum value is 600s. Defaults to 0 
    if not inputs from user.
    INPUTS: none 
    OUTPUT: Returns int. 
    """
    loop = True
    while loop:
        duration = input('Enter call duration(s) (default=10): ')
        if duration == '':
            return 10
        if duration.isdigit():
            if (int(duration) < 0) | (int(duration) > 600):
                print(
                    f"Invalid input '{duration}' >> Expecting integer(0-600).")
            else:
                loop = False
        else:
            print(f"Invalid input '{duration}' >> Expecting integer.")
    return int(duration)
