Пример #1
0
        public static List<TaxRateRow> getTable(AppConfig config)
        {
            List<TaxRateRow> table;
            switch (config.paymentPeriod)
            {
                case PaymentPeriod.DAILY:

                    table = new List<TaxRateRow>()
                                {
                                    new TaxRateRow() { rate = 5,  amount = 0.00 },
                                    new TaxRateRow() { rate = 10, amount = 1.65 },
                                    new TaxRateRow() { rate = 15, amount = 8.25 },
                                    new TaxRateRow() { rate = 20, amount = 28.05 },
                                    new TaxRateRow() { rate = 25, amount = 74.26 },
                                    new TaxRateRow() { rate = 30, amount = 165.02 },
                                    new TaxRateRow() { rate = 32, amount = 412.54 },

                                };

                    break;

                case PaymentPeriod.WEEKLY:

                    table = new List<TaxRateRow>()
                                {
                                    new TaxRateRow() { rate = 5,  amount = 0.00 },
                                    new TaxRateRow() { rate = 10, amount = 9.62 },
                                    new TaxRateRow() { rate = 15, amount = 48.08 },
                                    new TaxRateRow() { rate = 20, amount = 163.46 },
                                    new TaxRateRow() { rate = 25, amount = 432.69 },
                                    new TaxRateRow() { rate = 30, amount = 961.54 },
                                    new TaxRateRow() { rate = 32, amount = 2403.85 },

                                };

                    break;
                case PaymentPeriod.SEMIMONTHLY:

                    table = new List<TaxRateRow>()
                                {
                                    new TaxRateRow() { rate = 5,  amount = 0.00 },
                                    new TaxRateRow() { rate = 10, amount = 20.83 },
                                    new TaxRateRow() { rate = 15, amount = 104.17 },
                                    new TaxRateRow() { rate = 20, amount = 354.17 },
                                    new TaxRateRow() { rate = 25, amount = 937.50 },
                                    new TaxRateRow() { rate = 30, amount = 2083.33 },
                                    new TaxRateRow() { rate = 32, amount = 5208.33 },

                                };
                    break;
                case PaymentPeriod.MONTHLY:

                    table = new List<TaxRateRow>()
                                {
                                    new TaxRateRow() { rate = 5,  amount = 0.00 },
                                    new TaxRateRow() { rate = 10, amount = 41.67 },
                                    new TaxRateRow() { rate = 15, amount = 208.33 },
                                    new TaxRateRow() { rate = 20, amount = 708.33 },
                                    new TaxRateRow() { rate = 25, amount = 1875.00 },
                                    new TaxRateRow() { rate = 30, amount = 4166.67 },
                                    new TaxRateRow() { rate = 32, amount = 10416.67 },

                                };

                    break;

                default:

                    table = new List<TaxRateRow>()
                                {
                                    new TaxRateRow() { rate = 5,  amount = 0.00 },
                                    new TaxRateRow() { rate = 10, amount = 41.67 },
                                    new TaxRateRow() { rate = 15, amount = 208.33 },
                                    new TaxRateRow() { rate = 20, amount = 708.33 },
                                    new TaxRateRow() { rate = 25, amount = 1875.00 },
                                    new TaxRateRow() { rate = 30, amount = 4166.67 },
                                    new TaxRateRow() { rate = 32, amount = 10416.67 },

                                };

                    break;
            }
            return table;
        }
Пример #2
0
        public List<withHoldingTaxRow> getTable(AppConfig config)
        {
            var table = new List<withHoldingTaxRow>();
            switch (config.paymentPeriod)
            {
                case PaymentPeriod.DAILY:

                    table = new List<withHoldingTaxRow>()
                                {
                                     new withHoldingTaxRow() { baseSalary=0, rangeSalary=0,           excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                                     new withHoldingTaxRow() { baseSalary=33, rangeSalary=98.99,      excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                                     new withHoldingTaxRow() { baseSalary=99, rangeSalary=230.99,     excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                                     new withHoldingTaxRow() { baseSalary=231, rangeSalary=461.99,    excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                                     new withHoldingTaxRow() { baseSalary=462, rangeSalary=824.99,    excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                                     new withHoldingTaxRow() { baseSalary=825, rangeSalary=1649.99,   excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                                     new withHoldingTaxRow() { baseSalary=1650, rangeSalary=1000000,  excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                                };

                    break;
                case PaymentPeriod.WEEKLY:
                    table = new List<withHoldingTaxRow>()
                                {
                                     new withHoldingTaxRow() { baseSalary=0, rangeSalary=0,          excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                                     new withHoldingTaxRow() { baseSalary=192, rangeSalary=576.99,   excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                                     new withHoldingTaxRow() { baseSalary=577, rangeSalary=1345.99,  excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                                     new withHoldingTaxRow() { baseSalary=1346, rangeSalary=2691.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                                     new withHoldingTaxRow() { baseSalary=2692, rangeSalary=4807.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                                     new withHoldingTaxRow() { baseSalary=4808, rangeSalary=9614.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                                     new withHoldingTaxRow() { baseSalary=9615, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                                };

                    break;
                case PaymentPeriod.SEMIMONTHLY:
                    table = new List<withHoldingTaxRow>()
                                {
                                     new withHoldingTaxRow() { baseSalary=0, rangeSalary=0,            excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                                     new withHoldingTaxRow() { baseSalary=417, rangeSalary=1249.99,    excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                                     new withHoldingTaxRow() { baseSalary=1250, rangeSalary=2916.99,   excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                                     new withHoldingTaxRow() { baseSalary=2917, rangeSalary=5832.99,   excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                                     new withHoldingTaxRow() { baseSalary=5833, rangeSalary=10416.99,  excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                                     new withHoldingTaxRow() { baseSalary=10417, rangeSalary=20832.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                                     new withHoldingTaxRow() { baseSalary=20833, rangeSalary=1000000,  excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                                };

                    break;
                case PaymentPeriod.MONTHLY:
                    table = new List<withHoldingTaxRow>()
                                {
                                     new withHoldingTaxRow() { baseSalary=0, rangeSalary=0,      excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                                     new withHoldingTaxRow() { baseSalary=833, rangeSalary=2499.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                                     new withHoldingTaxRow() { baseSalary=2500, rangeSalary=5832.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                                     new withHoldingTaxRow() { baseSalary=5833, rangeSalary=11666.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                                     new withHoldingTaxRow() { baseSalary=11667, rangeSalary=20832.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                                     new withHoldingTaxRow() { baseSalary=20833, rangeSalary=41666.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                                     new withHoldingTaxRow() { baseSalary=41667, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                                };

                    break;

            }

            return table;
        }
Пример #3
0
        public List<withHoldingTaxRow> getTable(AppConfig config)
        {
            var table = new List<withHoldingTaxRow>();
            switch (config.paymentPeriod)
            {
                case PaymentPeriod.DAILY:
                    table = new List<withHoldingTaxRow>()
                                {
                                    new withHoldingTaxRow() { baseSalary=165, rangeSalary=197.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                                    new withHoldingTaxRow() { baseSalary=198, rangeSalary=263.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                                    new withHoldingTaxRow() { baseSalary=264, rangeSalary=395.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                                    new withHoldingTaxRow() { baseSalary=396, rangeSalary=626.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                                    new withHoldingTaxRow() { baseSalary=627, rangeSalary=989.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                                    new withHoldingTaxRow() { baseSalary=990, rangeSalary=1814.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                                    new withHoldingTaxRow() { baseSalary=1815, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                                };

                    break;
                case PaymentPeriod.WEEKLY:
                    table = new List<withHoldingTaxRow>()
                                {
                                    new withHoldingTaxRow() { baseSalary=962,    rangeSalary=1153.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                                    new withHoldingTaxRow() { baseSalary=1154,  rangeSalary=1537.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                                    new withHoldingTaxRow() { baseSalary=1538,  rangeSalary=2307.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                                    new withHoldingTaxRow() { baseSalary=2308,  rangeSalary=3653.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                                    new withHoldingTaxRow() { baseSalary=3654,  rangeSalary=5768.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                                    new withHoldingTaxRow() { baseSalary=5769,  rangeSalary=10576.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                                    new withHoldingTaxRow() { baseSalary=10577, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },
                                };

                    break;
                case PaymentPeriod.SEMIMONTHLY:
                    table = new List<withHoldingTaxRow>()
                                {
                                    new withHoldingTaxRow() { baseSalary=962,    rangeSalary=1153.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                                    new withHoldingTaxRow() { baseSalary=1154,  rangeSalary=1537.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                                    new withHoldingTaxRow() { baseSalary=1538,  rangeSalary=2307.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                                    new withHoldingTaxRow() { baseSalary=2308,  rangeSalary=3653.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                                    new withHoldingTaxRow() { baseSalary=3654,  rangeSalary=5768.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                                    new withHoldingTaxRow() { baseSalary=5769,  rangeSalary=10576.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                                    new withHoldingTaxRow() { baseSalary=10577, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },
                                };

                    break;
                case PaymentPeriod.MONTHLY:
                    table = new List<withHoldingTaxRow>()
                                {
                                    new withHoldingTaxRow() { baseSalary=4167, rangeSalary=4999.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                                    new withHoldingTaxRow() { baseSalary=5000, rangeSalary=6666.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                                    new withHoldingTaxRow() { baseSalary=6667, rangeSalary=9999.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                                    new withHoldingTaxRow() { baseSalary=10000, rangeSalary=15832.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                                    new withHoldingTaxRow() { baseSalary=15833, rangeSalary=24999.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                                    new withHoldingTaxRow() { baseSalary=25000, rangeSalary=45832.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                                    new withHoldingTaxRow() { baseSalary=45833, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                                };

                    break;

            }

            return table;
        }
Пример #4
0
        public List<withHoldingTaxRow> getTable(AppConfig config)
        {
            var table = new List<withHoldingTaxRow>();
            switch (config.paymentPeriod)
            {
                case PaymentPeriod.DAILY:
                    table = new List<withHoldingTaxRow>()
                        {
                             new withHoldingTaxRow() { baseSalary=495, rangeSalary=527.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                             new withHoldingTaxRow() { baseSalary=528, rangeSalary=593.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                             new withHoldingTaxRow() { baseSalary=594, rangeSalary=725.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                             new withHoldingTaxRow() { baseSalary=726, rangeSalary=956.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                             new withHoldingTaxRow() { baseSalary=957, rangeSalary=1319.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                             new withHoldingTaxRow() { baseSalary=1320, rangeSalary=2144.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                             new withHoldingTaxRow() { baseSalary=2145, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                        };

                    break;
                case PaymentPeriod.WEEKLY:
                    table = new List<withHoldingTaxRow>()
                        {
                             new withHoldingTaxRow() { baseSalary=2885, rangeSalary=3076.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                             new withHoldingTaxRow() { baseSalary=3077, rangeSalary=3461.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                             new withHoldingTaxRow() { baseSalary=3462, rangeSalary=4230.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                             new withHoldingTaxRow() { baseSalary=4231, rangeSalary=5576.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                             new withHoldingTaxRow() { baseSalary=5577, rangeSalary=7691.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                             new withHoldingTaxRow() { baseSalary=7692, rangeSalary=12499.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                             new withHoldingTaxRow() { baseSalary=12500, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                        };

                    break;
                case PaymentPeriod.SEMIMONTHLY:
                    table = new List<withHoldingTaxRow>()
                        {
                            new withHoldingTaxRow() { baseSalary=6250, rangeSalary=6666.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                             new withHoldingTaxRow() { baseSalary=6667, rangeSalary=7499.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                             new withHoldingTaxRow() { baseSalary=7500, rangeSalary=9166.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                             new withHoldingTaxRow() { baseSalary=9167, rangeSalary=12082.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                             new withHoldingTaxRow() { baseSalary=12083, rangeSalary=16666.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                             new withHoldingTaxRow() { baseSalary=16667, rangeSalary=27082.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                             new withHoldingTaxRow() { baseSalary=27083, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                        };

                    break;
                case PaymentPeriod.MONTHLY:
                    table = new List<withHoldingTaxRow>()
                                {
                                    new withHoldingTaxRow() { baseSalary=12500, rangeSalary=13332.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                                    new withHoldingTaxRow() { baseSalary=13333, rangeSalary=14999.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                                    new withHoldingTaxRow() { baseSalary=15000, rangeSalary=18332.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                                    new withHoldingTaxRow() { baseSalary=18333, rangeSalary=24166.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                                    new withHoldingTaxRow() { baseSalary=24167, rangeSalary=33332.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                                    new withHoldingTaxRow() { baseSalary=33333, rangeSalary=54166.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                                    new withHoldingTaxRow() { baseSalary=54167, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                                };

                    break;

            }

            return table;
        }
Пример #5
0
        public List<withHoldingTaxRow> getTable(AppConfig config)
        {
            var table = new List<withHoldingTaxRow>();
            switch (config.paymentPeriod)
            {
                case PaymentPeriod.DAILY:
                    table = new List<withHoldingTaxRow>()
                        {
                             new withHoldingTaxRow() { baseSalary=413, rangeSalary=445.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                             new withHoldingTaxRow() { baseSalary=446, rangeSalary=511.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                             new withHoldingTaxRow() { baseSalary=512, rangeSalary=643.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                             new withHoldingTaxRow() { baseSalary=644, rangeSalary=874.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                             new withHoldingTaxRow() { baseSalary=875, rangeSalary=1237.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                             new withHoldingTaxRow() { baseSalary=1238, rangeSalary=2062.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                             new withHoldingTaxRow() { baseSalary=2063, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                        };

                    break;
                case PaymentPeriod.WEEKLY:
                    table = new List<withHoldingTaxRow>()
                        {
                            new withHoldingTaxRow() { baseSalary=2404, rangeSalary=2595.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                            new withHoldingTaxRow() { baseSalary=2596, rangeSalary=2980.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                            new withHoldingTaxRow() { baseSalary=2981, rangeSalary=3749.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                            new withHoldingTaxRow() { baseSalary=3750, rangeSalary=5095.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                            new withHoldingTaxRow() { baseSalary=5096, rangeSalary=7211.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                            new withHoldingTaxRow() { baseSalary=7212, rangeSalary=12018.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                            new withHoldingTaxRow() { baseSalary=12019, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                        };

                    break;
                case PaymentPeriod.SEMIMONTHLY:
                    table = new List<withHoldingTaxRow>()
                        {
                            new withHoldingTaxRow() { baseSalary=5208, rangeSalary=5624.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                            new withHoldingTaxRow() { baseSalary=5625, rangeSalary=6457.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                            new withHoldingTaxRow() { baseSalary=6458, rangeSalary=8124.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                            new withHoldingTaxRow() { baseSalary=8125, rangeSalary=11041.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                            new withHoldingTaxRow() { baseSalary=11042, rangeSalary=15624.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                            new withHoldingTaxRow() { baseSalary=15625, rangeSalary=26041.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                            new withHoldingTaxRow() { baseSalary=26042, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },
                        };

                    break;
                case PaymentPeriod.MONTHLY:
                    table = new List<withHoldingTaxRow>()
                                {
                                    new withHoldingTaxRow() { baseSalary=10417, rangeSalary=11249.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                                    new withHoldingTaxRow() { baseSalary=11250, rangeSalary=12916.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                                    new withHoldingTaxRow() { baseSalary=12917, rangeSalary=16249.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                                    new withHoldingTaxRow() { baseSalary=16250, rangeSalary=22082.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                                    new withHoldingTaxRow() { baseSalary=22083, rangeSalary=31249.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                                    new withHoldingTaxRow() { baseSalary=31250, rangeSalary=52082.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                                    new withHoldingTaxRow() { baseSalary=52083, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                                };

                    break;

            }

            return table;
        }
Пример #6
0
        public List<withHoldingTaxRow> getTable(AppConfig config)
        {
            var table = new List<withHoldingTaxRow>();
            switch (config.paymentPeriod)
            {
                case PaymentPeriod.DAILY:
                    table = new List<withHoldingTaxRow>()
                        {
                              new withHoldingTaxRow() { baseSalary=330, rangeSalary=362.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                              new withHoldingTaxRow() { baseSalary=363, rangeSalary=428.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                              new withHoldingTaxRow() { baseSalary=429, rangeSalary=560.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                              new withHoldingTaxRow() { baseSalary=561, rangeSalary=791.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                              new withHoldingTaxRow() { baseSalary=792, rangeSalary=1154.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                              new withHoldingTaxRow() { baseSalary=1155, rangeSalary=1979.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                              new withHoldingTaxRow() { baseSalary=1980, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },
                        };

                    break;
                case PaymentPeriod.WEEKLY:
                    table = new List<withHoldingTaxRow>()
                        {

                              new withHoldingTaxRow() { baseSalary=1923, rangeSalary=2114.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                              new withHoldingTaxRow() { baseSalary=2115, rangeSalary=2499.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                              new withHoldingTaxRow() { baseSalary=2500, rangeSalary=3268.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                              new withHoldingTaxRow() { baseSalary=3269, rangeSalary=4314.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                              new withHoldingTaxRow() { baseSalary=4315, rangeSalary=6730.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                              new withHoldingTaxRow() { baseSalary=6731, rangeSalary=11537.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                              new withHoldingTaxRow() { baseSalary=11538, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },
                        };

                    break;
                case PaymentPeriod.SEMIMONTHLY:
                    table = new List<withHoldingTaxRow>()
                        {

                            new withHoldingTaxRow() { baseSalary=4167, rangeSalary=4582.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                              new withHoldingTaxRow() { baseSalary=4583, rangeSalary=5416.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                              new withHoldingTaxRow() { baseSalary=5417, rangeSalary=7082.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                              new withHoldingTaxRow() { baseSalary=7083, rangeSalary=9999.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                              new withHoldingTaxRow() { baseSalary=10000, rangeSalary=14582.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                              new withHoldingTaxRow() { baseSalary=14583, rangeSalary=24999.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                              new withHoldingTaxRow() { baseSalary=25000, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },
                        };

                    break;
                case PaymentPeriod.MONTHLY:
                    table = new List<withHoldingTaxRow>()
                                {
                                    new withHoldingTaxRow() { baseSalary=8333, rangeSalary=9166.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                                    new withHoldingTaxRow() { baseSalary=9167, rangeSalary=10832.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                                    new withHoldingTaxRow() { baseSalary=10833, rangeSalary=14166.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                                    new withHoldingTaxRow() { baseSalary=14167, rangeSalary=19999.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                                    new withHoldingTaxRow() { baseSalary=20000, rangeSalary=29166.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                                    new withHoldingTaxRow() { baseSalary=29167, rangeSalary=49999.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                                    new withHoldingTaxRow() { baseSalary=50000, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                                };

                    break;

            }

            return table;
        }
Пример #7
0
        public List<withHoldingTaxRow> getTable(AppConfig config)
        {
            var table = new List<withHoldingTaxRow>();
            switch (config.paymentPeriod)
            {
                case PaymentPeriod.DAILY:
                    table = new List<withHoldingTaxRow>()
                                {
                                    new withHoldingTaxRow() { baseSalary=248, rangeSalary=280.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                                    new withHoldingTaxRow() { baseSalary=281, rangeSalary=346.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                                    new withHoldingTaxRow() { baseSalary=347, rangeSalary=478.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                                    new withHoldingTaxRow() { baseSalary=479, rangeSalary=709.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                                    new withHoldingTaxRow() { baseSalary=710, rangeSalary=1072.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                                    new withHoldingTaxRow() { baseSalary=1073, rangeSalary=1897.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                                    new withHoldingTaxRow() { baseSalary=1898, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                                };

                    break;
                case PaymentPeriod.WEEKLY:
                    table = new List<withHoldingTaxRow>()
                        {

                                    new withHoldingTaxRow() { baseSalary=1442, rangeSalary=1634.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                                    new withHoldingTaxRow() { baseSalary=1635, rangeSalary=2018.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                                    new withHoldingTaxRow() { baseSalary=2019, rangeSalary=2787.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                                    new withHoldingTaxRow() { baseSalary=2788, rangeSalary=4134.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                                    new withHoldingTaxRow() { baseSalary=4135, rangeSalary=6249.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                                    new withHoldingTaxRow() { baseSalary=6250, rangeSalary=11057.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                                    new withHoldingTaxRow() { baseSalary=11058, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },
                        };

                    break;
                case PaymentPeriod.SEMIMONTHLY:
                    table = new List<withHoldingTaxRow>()
                        {

                                    new withHoldingTaxRow() { baseSalary=3125, rangeSalary=3541.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                                    new withHoldingTaxRow() { baseSalary=3542, rangeSalary=4374.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                                    new withHoldingTaxRow() { baseSalary=4375, rangeSalary=6041.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                                    new withHoldingTaxRow() { baseSalary=6042, rangeSalary=8957.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                                    new withHoldingTaxRow() { baseSalary=8958, rangeSalary=13541.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                                    new withHoldingTaxRow() { baseSalary=13542, rangeSalary=23957.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                                    new withHoldingTaxRow() { baseSalary=23958, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },
                        };

                    break;
                case PaymentPeriod.MONTHLY:
                    table = new List<withHoldingTaxRow>()
                                {
                                    new withHoldingTaxRow() { baseSalary=6250, rangeSalary=7082.99, excessRate=5, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==5).amount  },
                                    new withHoldingTaxRow() { baseSalary=7083, rangeSalary=8749.99, excessRate=10, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==10).amount  },
                                    new withHoldingTaxRow() { baseSalary=8750, rangeSalary=12082.99, excessRate=15, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==15).amount  },
                                    new withHoldingTaxRow() { baseSalary=12083, rangeSalary=17916.99, excessRate=20, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==20).amount  },
                                    new withHoldingTaxRow() { baseSalary=17917, rangeSalary=27082.99, excessRate=25, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==25).amount  },
                                    new withHoldingTaxRow() { baseSalary=27083, rangeSalary=47916.99, excessRate=30, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==30).amount  },
                                    new withHoldingTaxRow() { baseSalary=47917, rangeSalary=1000000, excessRate=32, taxAmount=TaxRateTable.getTable(config).Find(x => x.rate==32).amount  },

                                };

                    break;

            }

            return table;
        }