Cosmrtic changes
This commit is contained in:
parent
343564fcc0
commit
c4d5dd46dd
@ -23,7 +23,9 @@
|
|||||||
foreach (var band in await _taxBandRepository.GetTaxBands())
|
foreach (var band in await _taxBandRepository.GetTaxBands())
|
||||||
{
|
{
|
||||||
if (annualSalary <= band.LowerLimit)
|
if (annualSalary <= band.LowerLimit)
|
||||||
|
{
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
decimal taxableAmountInBand = band.UpperLimit.HasValue
|
decimal taxableAmountInBand = band.UpperLimit.HasValue
|
||||||
? Math.Min(annualSalary, band.UpperLimit.Value) - band.LowerLimit
|
? Math.Min(annualSalary, band.UpperLimit.Value) - band.LowerLimit
|
||||||
@ -33,7 +35,9 @@
|
|||||||
taxPaid += taxInBand;
|
taxPaid += taxInBand;
|
||||||
|
|
||||||
if (!band.UpperLimit.HasValue || annualSalary <= band.UpperLimit.Value)
|
if (!band.UpperLimit.HasValue || annualSalary <= band.UpperLimit.Value)
|
||||||
|
{
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return taxPaid;
|
return taxPaid;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user