def calculate_bmi(height, weight, system='metric'):
    """
    Return the body mass index (BMI) for the given weight and height.
    """
    if system == 'metric':
        bmi = (weight / (height ** 2))
    else:
        bmi = 703 * (weight / (height ** 2))
    return bmi