def percent_change(d1, d2):
    """Calculate percent change between two numbers.
    :param d1: Starting number
    :type d1: float
    :param d2: Ending number
    :type d2: float
    :return: Percent change
    :rtype: float
    """
    return (d2 - d1) / d1