def tvm(pv,fv,pmt,n,i):
    '''equation for time value of money'''
    i=i/100
    tmp=(1+i)**n
    return pv*tmp+pmt/i*(tmp-1)-fv
equation for time value of money
recipes/Python/303396_simple_equatisolver_using_attribute_access/recipe-303396.py