def    ror (endv, iv):
    """ This capital budgeting function computes the rate of
    return on an investment for one period only.
    iv = initial investment value
    endv = total value at the end of the period
    Example: ror(100000, 129,500)
    """
    return (endv - iv)/iv