Table of Contents

Interface INiCalculatorFactory

Namespace
Payetools.NationalInsurance
Assembly
Payetools.NationalInsurance.dll

Interface that represents factories that can generate INiCalculator implementations.

public interface INiCalculatorFactory

Methods

GetCalculator(PayDate, int, bool)

Gets an instance of an INiCalculator for the specified pay date.

INiCalculator GetCalculator(PayDate payDate, int numberOfTaxPeriods = 1, bool applyWeek53Treatment = false)

Parameters

payDate PayDate

Applicable pay date.

numberOfTaxPeriods int

Number of tax periods applicable, usually 1. Defaults to 1.

applyWeek53Treatment bool

Flag that indicates whether to apply "week 53" treatment, i.e., where there are 53 weeks in a tax year (or 27 periods in a two-weekly pay cycle, etc.). Must be false for monthly, quarterly and annual payrolls. Optional, defaulting to false.

Returns

INiCalculator

Instance of INiCalculator for the specified tax regime and pay date.