public Deductions ComputeTaxes()
        {
            var input = Appcontext.UserInput;

            Incoming = input.HoursRate * input.HoursWorked;

            var d = new Deductions()
            {
                Employeelocation      = input.EmployeesLocation,
                GrossAmount           = Incoming,
                IncomeTax             = CalculateincomeTaxRate(),
                UniversalSocialCharge = CalculeteUniversalSocialCharge(),
                Pension   = CompulsoryPension(),
                NetAmount = 0
            };

            d.NetAmount = d.GrossAmount - d.IncomeTax - d.UniversalSocialCharge - d.Pension;

            return(d);
        }
Esempio n. 2
0
 private void HandleOutPut(Deductions deductions)
 {
     Deductions = deductions;
     HandleResponse();
 }