Class NiPeriodThresholdEntry
- Namespace
- Payetools.NationalInsurance.ReferenceData
- Assembly
- Payetools.NationalInsurance.dll
Represents a specific National Insurance threshold (e.g., LEL, UEL) adjusted for a specific pay frequency and number of periods, as NI is calculated based on the appropriate fraction of the applicable annual threshold.
public record NiPeriodThresholdEntry : IEquatable<NiPeriodThresholdEntry>
- Inheritance
-
NiPeriodThresholdEntry
- Implements
- Inherited Members
Constructors
NiPeriodThresholdEntry(INiThresholdEntry, PayFrequency, int)
Initialises a new instance of NiPeriodThresholdEntry based on the supplied annual threshold, specified pay frequency and optional number of tax periods.
public NiPeriodThresholdEntry(INiThresholdEntry baseEntry, PayFrequency payFrequency, int numberOfTaxPeriods = 1)
Parameters
baseEntry
INiThresholdEntryAnnual threshold entry to calculate period threshold from.
payFrequency
PayFrequencyApplicable pay frequency.
numberOfTaxPeriods
intNumber of pay periods. Defaults to 1.
Properties
NumberOfTaxPeriods
Gets the number of tax periods applicable for this period threshold.
public int NumberOfTaxPeriods { get; }
Property Value
PayFrequency
Gets the applicable pay frequency for this period threshold.
public PayFrequency PayFrequency { get; }
Property Value
ThresholdForPeriod
Gets the base threshold for the period, as distinct from ThresholdForPeriod1 (see below).
public decimal ThresholdForPeriod { get; }
Property Value
ThresholdForPeriod1
Gets the modified threshold for the period (as distinct from ThresholdForPeriod) where rounding is applied based on whether the pay frequency is weekly or monthly, or otherwise. As detailed in HMRC's NI calculation documentation as 'p1'.
public decimal ThresholdForPeriod1 { get; }
Property Value
ThresholdType
Gets the type of this threshold entry (e.g., LEL, PT, ST, etc.).
public NiThresholdType ThresholdType { get; }
Property Value
Methods
ToString()
Gets a string representation of this NiPeriodThresholdEntry.
public override string ToString()
Returns
- string
String representation of this instance.