malee/_malee.py
def pv(Rt, i, t=1):
    """Present value accounts for the current value of a future
    sum of money or stream of cash flows given a specified
    rate of return.

    Args:
        Rt: Return we get at time `t`
        i: Discount rate
        t: Time we get the return

    Returns:
        Present value

    Example:
        Here's a simple example of how you can calculate
        the present value of a given return and time period:

        >>> import malee
        >>> malee.pv(1030, 0.05, 1)
        980.952380952381
    """
    return Rt / ((1 + i) ** t)
Present value accounts for the current value of a future
    sum of money or stream of cash flows given a specified
    rate of return.

    Args:
        Rt: Return we get at time `t`
        i: Discount rate
        t: Time we get the return

    Returns:
        Present value

    Example:
        Here's a simple example of how you can calculate
        the present value of a given return and time period:

        >>> import malee
        >>> malee.pv(1030, 0.05, 1)
        980.952380952381
    
Present value accounts for the current value of a future
sum of money or stream of cash flows given a specified
rate of return.
Present value accounts for the current value of a future sum of money or stream of cash flows given a specified rate of return .
def pv(Rt, i, t=1):
    return Rt / ((1 + i) ** t)
def pv ( Rt , i , t = 1 ) : return Rt / ( ( 1 + i ) ** t )
Present value accounts for the current value of a future
sum of money or stream of cash flows given a specified
rate of return.
Present value accounts for the current value of a future sum of money or stream of cash flows given a specified rate of return .
"""Present value accounts for the current value of a future
    sum of money or stream of cash flows given a specified
    rate of return.

    Args:
        Rt: Return we get at time `t`
        i: Discount rate
        t: Time we get the return

    Returns:
        Present value

    Example:
        Here's a simple example of how you can calculate
        the present value of a given return and time period:

        >>> import malee
        >>> malee.pv(1030, 0.05, 1)
        980.952380952381
    """
None
Rt
Return we get at time `t`
Return we get at time ` t `
i
None
t
Time we get the return
Time we get the return
examples
Here's a simple example of how you can calculate
the present value of a given return and time period.


Here ' s a simple example of how you can calculate the present value of a given return and time period .