import json


def get_duration(match_config_path):
    
    """
    Returns a match duration from a match configuration JSON file
    (batch_input.json or freeplay.json).
    """
    
    with open(match_config_path) as config_file:
        config_json = json.loads(config_file.read())
        
    return config_json["Duration"]