Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameters #1

Open
Goro2030 opened this issue Feb 15, 2020 · 1 comment
Open

Parameters #1

Goro2030 opened this issue Feb 15, 2020 · 1 comment

Comments

@Goro2030
Copy link

Which are the required parameters to run the calculator?

@zacharygibbs
Copy link
Owner

Sorry for the delayed response - the parameters to run the code are in the "if name==main:" section (see below) debt in dollars, interest rates in %, taxes in % net income etc.

If you have trouble finding ' import zach' just comment out that line and the 'zach.exportpdffigs' and instead use plt.show()

debt = {"cc":2000., "student":49042, "auto":12000}

rate = {"cc":15.07, "student":6.8, "auto": 4.3}
studentloanpayment = loan_monthlypayment(debt['student'], 10, rate['student'])
autoloanpayment = loan_monthlypayment(debt['auto'], 5, rate['auto'])
#ccrate - http://www.creditcards.com/credit-card-news/interest-rate-report-100114-up-2121.php
#student loan rate - https://www.credible.com/blog/what-are-average-student-loan-interest-rates/
#auto - 4.3%

income0 = 50000 #at time = 0
raisepercent = 3. #percentage raise per year
taxes = 25. #percentage of income paid to taxes
Emergency_FundMonths = 4
inflation = 1.5#percent

#expenses
rice_beans = 150.*4.333 # dollars per week 



#housing
percent_housing = 25 #percentage of income paid to housing
maxhousing = 1500#
utils = 200#
mortgage_interest = 4 #percent
mortgage_value = 200000. #
mortgage_downpayment = 0.2*mortgage_value
loan_term = 15 #yrs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants