Example #1
0
        private TaxBracket FindTaxBracket(decimal income, TaxTable taxTable)
        {
            return(taxTable.TaxRate.Find(taxBracket =>

                                         income > taxBracket.MinIncome && (taxBracket.MaxIncome == null || income < taxBracket.MaxIncome)

                                         ));
        }
Example #2
0
        private IncomeTax InstantiseIncomeTaxTable()
        {
            var taxTable = new TaxTable(2018);
            var taxRates = new TaxRates();

            taxTable.AddTaxRate(taxRates.TaxRate2018);
            var incomeTax = new IncomeTax(new DateTime(07 / 1 / 1900));

            incomeTax.TaxTables.Add(taxTable);
            return(incomeTax);
        }