Test Failed
Push — master ( 63ff63...fafd44 )
by Francisco Manzano
08:52
created

actualizar_renta_perpetua()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
"""Actualizaciones financieras.
2
    Traer una cantidad de dinero del futuro a un tipo de interes dado."""
3
4
5
def actualizar_cantidad(amount, rate, pediods):
0 ignored issues
show
Coding Style introduced by
This function should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
6
    return amount / (1 + rate)**pediods
7
8
9
def actualizar_renta(installment, rate, periods):
0 ignored issues
show
Coding Style introduced by
This function should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
10
    amount = 0
11
    for i in range(1, periods+1):
12
        amount += actualizar_cantidad(installment, rate, i)
13
    return amount
14
15
16
def actualizar_renta_perpetua(installment, rate):
0 ignored issues
show
Coding Style introduced by
This function should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
17
    return installment / rate
18