def get_yearly_revenue(monthly_revenue) :
return (monthly_revenue * 12)
def get_yearly_expenses(monthly_expenses) :
return (monthly_expenses * 12)
def get_tax_amount(profit):
if profit > 100000 :
return(profit * 0.25)
else :
return(profit * 0.15)
def apply_tax_credits(get_tax_amount,get_tax_credits):
return(get_tax_amount - get_tax_credits)
# Don't touch anthing below this line 🙅🏻♂️🙅🏻♀️
monthly_revenue = 5500000
monthly_expenses = 2700000
tax_credits = 0.01
profit = get_yearly_revenue(monthly_revenue) - get_yearly_expenses(monthly_expenses)
tax_amount = get_tax_amount(profit)
final_tax_amount = tax_amount - apply_tax_credits(tax_amount, tax_credits)
print(f"Your tax bill is: ${final_tax_amount}")
Your tax bill is: $0.009999999776482582
'(before) 네덜란드 > 혹시몰라하는 코딩' 카테고리의 다른 글
# python_18 두근두근 고난이도 2일챌린지? (1) | 2022.12.09 |
---|---|
# python_17 아 챌린지 정말 도움되는구나 (3) | 2022.12.09 |
# python_15 PyPI, request (1) | 2022.12.09 |
# python_3 (정식챌린지 기간 시작) (0) | 2022.09.24 |
#python_2 (변수) (0) | 2022.09.24 |