Exemplo n.º 1
0
def calculate_net_income(gross_super_eligible_income, gross_annual_income, current_student_loans):
    net_annual_income = gross_annual_income
    salary_sacrifice_total = calculate_salary_sacrifice(gross_super_eligible_income)

    net_annual_income -= calculate_student_loans(gross_annual_income, current_student_loans)
    net_annual_income -= salary_sacrifice_total
    net_annual_income -= calculate_tax(gross_annual_income - salary_sacrifice_total)
    salary_sacrifice_income = salary_sacrifice_total * (1 - SALARY_SACRIFICE_TAX_RATE)
    return net_annual_income + salary_sacrifice_income
 def test_calculate_salary_sacrifice_from_low_eligible_income(self):
     super_contribution = calculate_salary_sacrifice(60000)
     self.assertEqual(super_contribution, 19300)
 def test_calculate_salary_sacrifice_from_maxed_out_income(self):
     super_contribution = calculate_salary_sacrifice(1000000)
     self.assertEqual(super_contribution, 0)