malee/_malee.py
def ar(vi, vf, D=0, W=0):
    """The Arithmetic Return is the simplest way of calculating
    the rate of return on an investment. To calculate it,
    you need the amount of growth, which is simply the final value `Vf`
    minus the initial value `Vi`. Then you just divide the amount of growth
    by the initial amount.

    Args:
        vi: Initial value of investment
        vf: Final value of investment
        D: The total deposit made into the investment
        W: Total of any withdrawals

    Returns:
        The arithmetic return of a given investment.

    Example:
        By providing initial and final value of investment
        you can get the percentage return of your investment:

        >>> import malee
        >>> malee.ar(100, 140)
        0.4
    """
    return (vf - D + W - vi) / vi
The Arithmetic Return is the simplest way of calculating
    the rate of return on an investment. To calculate it,
    you need the amount of growth, which is simply the final value `Vf`
    minus the initial value `Vi`. Then you just divide the amount of growth
    by the initial amount.

    Args:
        vi: Initial value of investment
        vf: Final value of investment
        D: The total deposit made into the investment
        W: Total of any withdrawals

    Returns:
        The arithmetic return of a given investment.

    Example:
        By providing initial and final value of investment
        you can get the percentage return of your investment:

        >>> import malee
        >>> malee.ar(100, 140)
        0.4
    
The Arithmetic Return is the simplest way of calculating
the rate of return on an investment. To calculate it,
you need the amount of growth, which is simply the final value `Vf`
minus the initial value `Vi`. Then you just divide the amount of growth
by the initial amount.
The Arithmetic Return is the simplest way of calculating the rate of return on an investment . To calculate it you need the amount of growth which is simply the final value ` Vf ` minus the initial value ` Vi ` . Then you just divide the amount of growth by the initial amount .
def ar(vi, vf, D=0, W=0):
    return (vf - D + W - vi) / vi
def ar ( vi , vf , D = 0 , W = 0 ) : return ( vf - D + W - vi ) / vi
The Arithmetic Return is the simplest way of calculating
the rate of return on an investment.
The Arithmetic Return is the simplest way of calculating the rate of return on an investment .
"""The Arithmetic Return is the simplest way of calculating
    the rate of return on an investment. To calculate it,
    you need the amount of growth, which is simply the final value `Vf`
    minus the initial value `Vi`. Then you just divide the amount of growth
    by the initial amount.

    Args:
        vi: Initial value of investment
        vf: Final value of investment
        D: The total deposit made into the investment
        W: Total of any withdrawals

    Returns:
        The arithmetic return of a given investment.

    Example:
        By providing initial and final value of investment
        you can get the percentage return of your investment:

        >>> import malee
        >>> malee.ar(100, 140)
        0.4
    """
The arithmetic return of a given investment.
The arithmetic return of a given investment .
vi
Initial value of investment
Initial value of investment
vf
Final value of investment
Final value of investment
D
The total deposit made into the investment
The total deposit made into the investment
W
Total of any withdrawals
Total of any withdrawals
examples
By providing initial and final value of investment
you can get the percentage return of your investment.


By providing initial and final value of investment you can get the percentage return of your investment .