def calculate_bmi(weight, height, system='metric'):
    """
    Return the Body Mass Index (BIM) for the
    given weight, height, and measurement system.
    """
    if system == 'metric':
        bmi = (weight / (height ** 2))
    else:
        bmi = 703 * (weight / (height ** 2))
    return bmi