Python code to get Accrued interest I've wrote this code and it does what is expected.
However, I'm thinking if there are better ways to write this, specially if is useful to wrap it in a class, or other ways to make it less loosen.
I'll be glad and grateful for any others corrections or suggestions.

interest_list = [0.5,  0.4,  0.3,  0.5,  0.7, 0.4,  -0.2,  -0.5,  0.3,
            0.7,  0.9,  1.0]

def get_unitary(interest_list):
    unit_list = []
    for i in range(len(interest_list)):
        unit_list.append(1+ interest_list[i]/100)
    return unit_list

# I've tested on some lists and found this faster than using reduce()
def prod(uni_list):
    p = 1
    for i in uni_list:
        p *= i
    return p


def get_accrued(prod):
    sub_1 = prod -1
    return sub_1 * 100


accrued = get_accrued(prod(get_unitary(interest_list)))
You can make it pretty short in Python 3 if you use functools.reduce():

from functools import reduce

interest_list = [0.5, 0.4, 0.3, 0.5, 0.7, 0.4, -0.2, -0.5, 0.3, 0.7, 0.9, 1.0]

l = [1 + n / 100 for n in interest_list]

accrued = (reduce(lambda x, y: x * y, l) - 1) * 100


In Python 2.7 no imports are needed.