def test_所得淨額為_1210000_則超過先前級距的部份課稅級距為百分之十二(self):
        income = self.總免稅額 + 1210000

        tax = calc_tax(income)

        self.assertEqual(tax, 107400)
    def test_所得淨額為_540000_課稅級距為百分之五(self):
        income = self.總免稅額 + 540000

        tax = calc_tax(income)

        self.assertEqual(tax, 27000)
    def test_所得淨額為_540001_則超過先前級距的部份課稅級距為百分之十二(self):
        income = self.總免稅額 + 540001

        tax = calc_tax(income)

        self.assertEqual(tax, 27000)
    def test_所得總額不高於免稅額加各項扣除額時為免稅(self):
        income = self.總免稅額

        tax = calc_tax(income)

        self.assertEqual(tax, 0)
    def test_所得淨額為_1_課稅級距為_百分之五(self):
        income = self.總免稅額 + 1

        tax = calc_tax(income)

        self.assertEqual(tax, 0)
    def test_所得總額為500萬則超過先前級距的部份課稅級距為百分之四十(self):
        income = 5000000

        tax = calc_tax(income)

        self.assertEqual(tax, 1048000)
    def test_所得總額為3000萬則超過先前級距的部份課稅級距為百分之四十五(self):
        income = 30000000

        tax = calc_tax(income)

        self.assertEqual(tax, 12017200)
    def test_所得總額為200萬則超過先前級距的部份課稅級距為百分之二十(self):
        income = 2000000

        tax = calc_tax(income)

        self.assertEqual(tax, 204200)
    def test_所得總額為300萬則超過先前級距的部份課稅級距為百分之三十(self):
        income = 3000000

        tax = calc_tax(income)

        self.assertEqual(tax, 431600)
Exemplo n.º 10
0
    def test_所得總額為100萬則超過先前級距的部份課稅級距為百分之十二(self):
        income = 1000000

        tax = calc_tax(income)

        self.assertEqual(tax, 45480)
Exemplo n.º 11
0
    def test_所得總額為50萬課稅級距為百分之五(self):
        income = 500000

        tax = calc_tax(income)

        self.assertEqual(tax, 9700)
Exemplo n.º 12
0
    def test_所得淨額為_10310001_則超過先前級距的部份課稅級距為百分之四十五(self):
        income = self.總免稅額 + 10310001

        tax = calc_tax(income)

        self.assertEqual(tax, 3294400)
Exemplo n.º 13
0
    def test_所得淨額為_4530001_則超過先前級距的部份課稅級距為百分之四十(self):
        income = self.總免稅額 + 4530001

        tax = calc_tax(income)

        self.assertEqual(tax, 982400)
Exemplo n.º 14
0
    def test_所得淨額為_2420001_則超過先前級距的部份課稅級距為百分之三十(self):
        income = self.總免稅額 + 2420001

        tax = calc_tax(income)

        self.assertEqual(tax, 349400)