income_calculator_main.py 525 B

12345678910
  1. def calc_income_by_time_in_euro_with_sales_tax(worked_time_in_minutes, hourly_wage_in_euro):
  2. sales_tax_percent = 0.19
  3. brutto_income_in_euro = worked_time_in_minutes * (hourly_wage_in_euro / 60)
  4. sales_tax = sales_tax_percent * brutto_income_in_euro
  5. netto_income_in_euro = brutto_income_in_euro - sales_tax
  6. return netto_income_in_euro, sales_tax
  7. def calc_income_by_time_in_euro_without_sales_tax(worked_time_in_minutes, hourly_wage_in_euro):
  8. return worked_time_in_minutes * (hourly_wage_in_euro / 60)