Beispiel #1
0
        //calculate the tax owed
        public decimal taxOwedFunc(taxInfo holdInfoTax)
        {
            decimal taxOwed = 0m;

            taxOwed = taxPercentFunc(holdInfoTax.adjustedGross) * holdInfoTax.adjustedGross;
            return(taxOwed);
        }
Beispiel #2
0
        //Penalty adjustment
        public void makeJudgment(ref taxInfo holdInfoTax, ref personInfo holdInfoPerson)
        {
            decimal ninetyPercent = 0.9m * holdInfoTax.taxOwed;
            decimal tenPercent    = 0.1m * System.Math.Abs(holdInfoPerson.fedTaxWith - ninetyPercent);

            if (holdInfoPerson.fedTaxWith <= ninetyPercent)
            {
                holdInfoTax.penalty = tenPercent;
            }
            else
            {
                holdInfoTax.Refund = tenPercent;
            }
        }