quarter1=802
quarter2=814
quarter3=829
quarter4=843
yearsum=quarter1+quarter2+quarter3+quarter4
print("Yearly sum:", yearsum)
average = yearsum / 4
print("Weekly average", average)
yearly_average = average * 52
print("2019 Average Earnings for women:", yearly_average)
# You can also get to the answer this way, if you prefer:
quarter1Salary=quarter1*13
quarter2Salary=quarter2*13
quarter3Salary=quarter3*13
quarter4Salary=quarter4*13
yearlySalary = quarter1Salary+quarter2Salary+quarter3Salary+quarter4Salary
print("2019 Yearly Salary for women:",yearlySalary)
Yearly sum: 3288
Weekly average 822.0
2019 Average Earnings for women: 42744.0
2019 Yearly Salary for women: 42744
income = 42744
ss_medicare_taxes= income*.0765
print("SS & Medicare taxes:", ss_medicare_taxes)
zero_taxed = 9699
taxed_at_12 = 39474-9700
print("Money not taxed:", zero_taxed)
print("Taxed @ 12%:", taxed_at_12)
taxes_at_12 = taxed_at_12 * .12
print("Taxes @ 12%:", taxes_at_12)
taxed_at_22 = 42744-39475
print("Taxed @ 22%",taxed_at_22)
taxes_at_22 = taxed_at_22 * .22
print("Taxes @ 22%:",taxes_at_22)
total_taxes = taxes_at_12+taxes_at_22+ss_medicare_taxes
print("Total Taxes: ",total_taxes)
net_income = income-total_taxes
print("net income after taxes:",net_income)
SS & Medicare taxes: 3269.9159999999997
Money not taxed: 9699
Taxed @ 12%: 29774
Taxes @ 12%: 3572.8799999999997
Taxed @ 22% 3269
Taxes @ 22%: 719.18
Total Taxes: 7561.975999999999
net income after taxes: 35182.024000000005
net_income=35182
net_investing=net_income / 2
monthly_income = net_income/12
monthly_living = monthly_income/2
print("Monthly Income:",monthly_income)
print("Monthly Living expenses:",monthly_living)
print("Monthly Investing:",monthly_living)
print("Yearly Living: ",net_investing)
print("Yearly Investing: ", net_investing)
Monthly Income: 2931.8333333333335
Monthly Living expenses: 1465.9166666666667
Monthly Investing: 1465.9166666666667
Yearly Living: 17591.0
Yearly Investing: 17591.0
inflationAdjustedEarnings=.096-.02
numYears = 15
monthly_investment=1465
yearly_investment=monthly_investment*12
investment_balance=0
for year in range(1,numYears+1):
# this loop runs for every year.
investment_earnings = investment_balance * inflationAdjustedEarnings
investment_balance = yearly_investment + investment_earnings + investment_balance
lifetime_earnings = investment_balance*.04
print("in year %s we made %d and ended with a balance of %d for a SWR of %d" % (year, investment_earnings, investment_balance, lifetime_earnings))
in year 1 we made 0 and ended with a balance of 17580 for a SWR of 703
in year 2 we made 1336 and ended with a balance of 36496 for a SWR of 1459
in year 3 we made 2773 and ended with a balance of 56849 for a SWR of 2273
in year 4 we made 4320 and ended with a balance of 78750 for a SWR of 3150
in year 5 we made 5985 and ended with a balance of 102315 for a SWR of 4092
in year 6 we made 7775 and ended with a balance of 127671 for a SWR of 5106
in year 7 we made 9703 and ended with a balance of 154954 for a SWR of 6198
in year 8 we made 11776 and ended with a balance of 184310 for a SWR of 7372
in year 9 we made 14007 and ended with a balance of 215898 for a SWR of 8635
in year 10 we made 16408 and ended with a balance of 249886 for a SWR of 9995
in year 11 we made 18991 and ended with a balance of 286458 for a SWR of 11458
in year 12 we made 21770 and ended with a balance of 325809 for a SWR of 13032
in year 13 we made 24761 and ended with a balance of 368150 for a SWR of 14726
in year 14 we made 27979 and ended with a balance of 413709 for a SWR of 16548
in year 15 we made 31441 and ended with a balance of 462731 for a SWR of 18509