def range_conversion(x, c, d):
    """
    Function to convert an initial range of [-1,1] to any custom range desired
    Parameters
    ----------
    x: float
        The value to convert
    c: float
        new range min value
    d: float
        new range max value
    Returns
    -------
    y: float
        the converted x value to the new range

    """
    a = -1
    b = 1
    y = (x - a) * float(d - c) / (b - a) + c
    y = round(y, 2)
    return y
