Example #1
0
        private void CalculateTaxes(decimal value)
        {
            var     bracket = FindApplicableTaxRate(value);
            decimal tax     = CalculateTaxLiability(value, bracket);

            TaxReturns.Add(new TaxReturnViewModel(tax, value, bracket.MarginalTaxRate));
        }
Example #2
0
 private void CalculateAllTaxes()
 {
     if (TaxReturns != null && TaxReturns.Count > 0)
     {
         TaxReturns.Clear();
     }
     foreach (var earnings in Earnings)
     {
         CalculateTaxes(earnings);
     }
 }