@@ -0,0 +1,2021 @@
+#!/usr/bin/env python%0A%0A# -*- coding: utf-8 -*-%0A%0Aimport sys%0A%0Ayear = 365.0%0A%0Adef debtAcuire():%0A    print 'Calculate genarel interest rate for debt acquisition:'%0A    print '----------------------------------------------------'%0A    captital = float(raw_input('Your capital:'))%0A    rate = float(raw_input('Interest Rate in percentage:%25'))%0A    rate /= 100.0%0A    interest = float(raw_input('Expected interest:'))%0A    bonus = float(raw_input('Bonus Interest:'))%0A    redpocket = float(raw_input('Platform red pocket:'))%0A    duration = int(raw_input('Remaining duration in days:'))%0A    total = bonus + redpocket + interest%0A    annualRate = total * year / (captital * duration)%0A    print 'Capital: %5Ct%5Ct%5Ct%7B0%7D'.format(captital)%0A    print 'Interest Rate: %5Ct%5Ct%5Ct%7B0:.3%25%7D'.format(rate)%0A    print 'Interest: %5Ct%5Ct%5Ct%7B0%7D'.format(interest)%0A    print 'Bonus: %5Ct%5Ct%5Ct%5Ct%7B0%7D'.format(bonus)%0A    print 'RedPocket: %5Ct%5Ct%5Ct%7B0%7D'.format(redpocket)%0A    print 'Total: %5Ct%5Ct%5Ct%5Ct%7B0%7D'.format(total)%0A    print 'General Annual Interest Rate: %5Ct%7B0:.3%25%7D'.format(annualRate)%0A%0A%0Adef directInvest():%0A    print 'Calculate general interest rate for direct investment project:'%0A    print '-------------------------------------------------------------'%0A    captital = float(raw_input('Your capital:'))%0A    rate = float(raw_input('Interest Rate in percentage:%25'))%0A    rate /= 100.0%0A    redpocket = float(raw_input('Platform red pocket:'))%0A    duration = int(raw_input('Duration in days:'))%0A    interest = captital * rate * duration / year%0A    total = redpocket + interest%0A    annualRate = total * year / (captital * duration)%0A    print 'Capital: %5Ct%5Ct%5Ct%7B0%7D'.format(captital)%0A    print 'Interest Rate: %5Ct%5Ct%5Ct%7B0:.3%25%7D'.format(rate)%0A    print 'Interest: %5Ct%5Ct%5Ct%7B0%7D'.format(interest)%0A    print 'RedPocket: %5Ct%5Ct%5Ct%7B0%7D'.format(redpocket)%0A    print 'Total: %5Ct%5Ct%5Ct%5Ct%7B0%7D'.format(total)%0A    print 'General Annual Interest Rate: %5Ct%7B0:.3%25%7D'.format(annualRate)%0A%0Adef main():%0A    if len(sys.argv) %3E 1:%0A        directInvest()%0A    else:%0A        debtAcuire()%0A%0Aif __name__ == '__main__':%0A    main()

Add investment assit