def computeRatedCurrent(d):
    """ Produces rated current (amps) as a function of wire diameter (mm)."""
    resistance = 22.0/d**2.0  # ohms per 1000m
    ratedCurrent = 100.0/resistance**(0.72)
    return ratedCurrent