def dict_to_seconds(dict_duration):
    """
    Convert a Replicon API duration dict to an integer of the total seconds
    """
    seconds = 0
    seconds += int(dict_duration['hours']) * 60 * 60
    seconds += int(dict_duration['minutes']) * 60
    seconds += int(dict_duration['seconds'])
    return seconds