Package: amortization
LicenseVersionGithub ActionsCoverageSupported versionsWheelStatusDownloadsamortizationPython library for calculating amortizations and generating amortization schedulesInstallationpipinstallamortizationUsagePythonAmortization Amountfromamortization.amountimportcalculate_amortization_amountamount=calculate_amortization_amount(150000,0.1,36)Amortization Periodfromamortization.periodimportcalculate_amortization_periodperiod=calculate_amortization_period(150000,0.1,4840.08)Amortization Schedulefromamortization.scheduleimportamortization_schedulefornumber,amount,interest,principal,balanceinamortization_schedule(150000,0.1,36):print(number,amount,interest,principal,balance)Amortization Schedule (using tabulate)fromamortization.scheduleimportamortization_schedulefromtabulateimporttabulatetable=(xforxinamortization_schedule(150000,0.1,36))print(tabulate(table,headers=["Number","Amount","Interest","Principal","Balance"],floatfmt=",.2f",numalign="right"))Command lineamortize-h
usage:amortize[-h]-PPRINCIPAL-rINTEREST_RATE[-s][-f{daily,biweekly,weekly,semimonthly,monthly,quarterly,semiyearly,yearly}](-nPERIOD|-aAMOUNT)Pythonlibraryforcalculatingamortizationsandgeneratingamortizationschedules

options:-h,--helpshowthishelpmessageandexit-s,--scheduleGenerateamortizationschedule-f{daily,biweekly,weekly,semimonthly,monthly,quarterly,semiyearly,yearly},--frequency{daily,biweekly,weekly,semimonthly,monthly,quarterly,semiyearly,yearly}Paymentfrequency-nPERIOD,--periodPERIODTotalnumberofperiods-aAMOUNT,--amountAMOUNTAmortizationamountperperiod

requiredarguments:-PPRINCIPAL,--principalPRINCIPALPrincipalamount-rINTEREST_RATE,--interest-rateINTEREST_RATEInterestrateperyearamortize-P150000-n36-r0.1# periodamortize-P150000-n36-r0.1-s# scheduleamortize-P150000-a4840.08-r0.1# amountamortize-P150000-n36-r0.1-fweekly# period (specify payment frequency)%amortize-P150000-n36-r0.1-sNumberAmountInterestPrincipalBalance
-------------------------------------------------14,840.081,250.003,590.08146,409.9224,840.081,220.083,620.00142,789.9234,840.081,189.923,650.16139,139.7644,840.081,159.503,680.58135,459.1854,840.081,128.833,711.25131,747.9364,840.081,097.903,742.18128,005.7574,840.081,066.713,773.37124,232.3884,840.081,035.273,804.81120,427.5794,840.081,003.563,836.52116,591.05104,840.08971.593,868.49112,722.56114,840.08939.353,900.73108,821.83124,840.08906.853,933.23104,888.60134,840.08874.073,966.01100,922.59144,840.08841.023,999.0696,923.53154,840.08807.704,032.3892,891.15164,840.08774.094,065.9988,825.16174,840.08740.214,099.8784,725.29184,840.08706.044,134.0480,591.25194,840.08671.594,168.4976,422.76204,840.08636.864,203.2272,219.54214,840.08601.834,238.2567,981.29224,840.08566.514,273.5763,707.72234,840.08530.904,309.1859,398.54244,840.08494.994,345.0955,053.45254,840.08458.784,381.3050,672.15264,840.08422.274,417.8146,254.34274,840.08385.454,454.6341,799.71284,840.08348.334,491.7537,307.96294,840.08310.904,529.1832,778.78304,840.08273.164,566.9228,211.86314,840.08235.104,604.9823,606.88324,840.08196.724,643.3618,963.52334,840.08158.034,682.0514,281.47344,840.08119.014,721.079,560.40354,840.0879.674,760.414,799.99364,839.9940.004,799.990.00
Totals174,242.7924,242.79150,000.00DependenciestabulateAuthorRonie MartinezReferencesAmortization Calculation FormulaAmortization Period Formula