def tolerance(dimension_mm, itg):
    """
    Returns the tolerance in micrometers using ISO standard
    using the given dimension and ITG number

    """
    return 10 ** ((itg - 1) / 5) * (0.45 * dimension_mm ** (1 / 3) + dimension_mm / 1000)