@casomoltd/nhs-pay 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/README.md +9 -4
  2. package/dist/additional-pension.d.ts +104 -0
  3. package/dist/additional-pension.js +163 -0
  4. package/dist/additional-pension.js.map +1 -0
  5. package/dist/dates.d.ts +21 -8
  6. package/dist/dates.js +46 -18
  7. package/dist/dates.js.map +1 -1
  8. package/dist/errors.d.ts +26 -0
  9. package/dist/errors.js +29 -0
  10. package/dist/errors.js.map +1 -1
  11. package/dist/factor-basis.d.ts +75 -22
  12. package/dist/factor-basis.js +95 -24
  13. package/dist/factor-basis.js.map +1 -1
  14. package/dist/gad/additional-pension-0-703-2023-10-03.d.ts +180 -0
  15. package/dist/gad/additional-pension-0-703-2023-10-03.js +87 -0
  16. package/dist/gad/additional-pension-0-703-2023-10-03.js.map +1 -0
  17. package/dist/gad/additional-pension-0-712-2023-10-03.d.ts +35 -0
  18. package/dist/gad/additional-pension-0-712-2023-10-03.js +170 -0
  19. package/dist/gad/additional-pension-0-712-2023-10-03.js.map +1 -0
  20. package/dist/gad/additional-pension-0-713-2023-10-03.d.ts +35 -0
  21. package/dist/gad/additional-pension-0-713-2023-10-03.js +173 -0
  22. package/dist/gad/additional-pension-0-713-2023-10-03.js.map +1 -0
  23. package/dist/gad/additional-pension-0-714-2023-10-03.d.ts +35 -0
  24. package/dist/gad/additional-pension-0-714-2023-10-03.js +176 -0
  25. package/dist/gad/additional-pension-0-714-2023-10-03.js.map +1 -0
  26. package/dist/gad/additional-pension-0-715-2023-10-03.d.ts +35 -0
  27. package/dist/gad/additional-pension-0-715-2023-10-03.js +179 -0
  28. package/dist/gad/additional-pension-0-715-2023-10-03.js.map +1 -0
  29. package/dist/gad/additional-pension-0-716-2023-10-03.d.ts +35 -0
  30. package/dist/gad/additional-pension-0-716-2023-10-03.js +170 -0
  31. package/dist/gad/additional-pension-0-716-2023-10-03.js.map +1 -0
  32. package/dist/gad/additional-pension-0-717-2023-10-03.d.ts +35 -0
  33. package/dist/gad/additional-pension-0-717-2023-10-03.js +173 -0
  34. package/dist/gad/additional-pension-0-717-2023-10-03.js.map +1 -0
  35. package/dist/gad/additional-pension-0-718-2023-10-03.d.ts +35 -0
  36. package/dist/gad/additional-pension-0-718-2023-10-03.js +176 -0
  37. package/dist/gad/additional-pension-0-718-2023-10-03.js.map +1 -0
  38. package/dist/gad/additional-pension-0-719-2023-10-03.d.ts +35 -0
  39. package/dist/gad/additional-pension-0-719-2023-10-03.js +179 -0
  40. package/dist/gad/additional-pension-0-719-2023-10-03.js.map +1 -0
  41. package/dist/gad/additional-pension-table.d.ts +51 -0
  42. package/dist/gad/additional-pension-table.js +23 -0
  43. package/dist/gad/additional-pension-table.js.map +1 -0
  44. package/dist/gad/factor-table.d.ts +7 -3
  45. package/dist/gad/factor-table.js.map +1 -1
  46. package/dist/gad/lrf-0-422-2023-06-30.d.ts +45 -0
  47. package/dist/gad/lrf-0-422-2023-06-30.js +70 -0
  48. package/dist/gad/lrf-0-422-2023-06-30.js.map +1 -0
  49. package/dist/gad/lrf-2023-06-30.d.ts +3 -3
  50. package/dist/gad/lrf-2023-06-30.js +3 -3
  51. package/dist/index.d.ts +12 -8
  52. package/dist/index.js +7 -4
  53. package/dist/index.js.map +1 -1
  54. package/dist/member-benefits.d.ts +16 -1
  55. package/dist/member-benefits.js +19 -3
  56. package/dist/member-benefits.js.map +1 -1
  57. package/dist/pension/history.d.ts +0 -8
  58. package/dist/pension/history.js +10 -4
  59. package/dist/pension/history.js.map +1 -1
  60. package/dist/pension/ledger.d.ts +59 -32
  61. package/dist/pension/ledger.js +129 -100
  62. package/dist/pension/ledger.js.map +1 -1
  63. package/dist/pension/prices.d.ts +75 -58
  64. package/dist/pension/prices.js +111 -42
  65. package/dist/pension/prices.js.map +1 -1
  66. package/dist/pension/uplift.d.ts +32 -24
  67. package/dist/pension/uplift.js +66 -18
  68. package/dist/pension/uplift.js.map +1 -1
  69. package/dist/pension-projection.d.ts +3 -3
  70. package/dist/pension-projection.js +8 -13
  71. package/dist/pension-projection.js.map +1 -1
  72. package/dist/sections/section-1995.d.ts +2 -2
  73. package/dist/sections/section-1995.js +3 -3
  74. package/dist/sections/section-1995.js.map +1 -1
  75. package/dist/sections/section-2008.js +5 -3
  76. package/dist/sections/section-2008.js.map +1 -1
  77. package/dist/sections/section-2015.d.ts +8 -7
  78. package/dist/sections/section-2015.js +14 -10
  79. package/dist/sections/section-2015.js.map +1 -1
  80. package/dist/sources.d.ts +3 -0
  81. package/dist/sources.js +14 -0
  82. package/dist/sources.js.map +1 -1
  83. package/package.json +2 -2
@@ -1,25 +1,64 @@
1
1
  import { FactorTable } from './gad/factor-table.js';
2
2
  import type { FactorProvenance, FactorTableKind } from './gad/factor-table.js';
3
+ /**
4
+ * The fixed pension ages the legacy sections' factors are measured from,
5
+ * named for the section that sets each. The tables are keyed by pension
6
+ * age (see the header), and these are the only two a legacy benefit has;
7
+ * the 2015 Section's is the member's own Normal Pension Age.
8
+ */
9
+ export declare const LEGACY_PENSION_AGES: {
10
+ readonly section1995: 60;
11
+ readonly section2008: 65;
12
+ };
13
+ /**
14
+ * The factor tables the library reads, named for what each is for. The
15
+ * value is GAD's own table reference, which is how the table is found in
16
+ * the workbook and the NHSBSA extract to check it; the name is how code
17
+ * picks one, so no branch below reads a reference it has to decode.
18
+ */
19
+ export declare const FACTOR_TABLES: {
20
+ /** 2015 Section, taken before its Normal Pension Age: main and
21
+ * additional pension alike (ERF1). */
22
+ readonly early2015: "0-420";
23
+ /** 2015 Section main pension, taken after its Normal Pension Age from
24
+ * active service (LRF1). */
25
+ readonly late2015: "0-421";
26
+ /** 2015 Section additional pension, taken after its Normal Pension Age
27
+ * from active service (LRF2). */
28
+ readonly late2015AdditionalPension: "0-422";
29
+ /** 1995 Section pension, taken before 60. */
30
+ readonly early1995Pension: "1-401";
31
+ /** 1995 Section automatic lump sum, taken before 60. */
32
+ readonly early1995LumpSum: "1-407";
33
+ /** 2008 Section, taken before 65. GAD prints it for any benefit
34
+ * with a pension age of 65, hence the name. */
35
+ readonly earlyAge65: "1-402";
36
+ /** 2008 Section, taken after 65. */
37
+ readonly late2008: "2-416";
38
+ };
3
39
  declare const TABLES: {
4
- readonly '0-420': FactorTable<{
40
+ readonly "0-420": FactorTable<{
41
+ readonly by: "period";
42
+ }>;
43
+ readonly "0-421": FactorTable<{
5
44
  readonly by: "period";
6
45
  }>;
7
- readonly '0-421': FactorTable<{
46
+ readonly "0-422": FactorTable<{
8
47
  readonly by: "period";
9
48
  }>;
10
- readonly '1-401': FactorTable<{
49
+ readonly "1-401": FactorTable<{
11
50
  readonly by: "age";
12
51
  readonly firstAge: 50;
13
52
  }>;
14
- readonly '1-402': FactorTable<{
53
+ readonly "1-407": FactorTable<{
15
54
  readonly by: "age";
16
55
  readonly firstAge: 50;
17
56
  }>;
18
- readonly '1-407': FactorTable<{
57
+ readonly "1-402": FactorTable<{
19
58
  readonly by: "age";
20
59
  readonly firstAge: 50;
21
60
  }>;
22
- readonly '2-416': FactorTable<{
61
+ readonly "2-416": FactorTable<{
23
62
  readonly by: "age";
24
63
  readonly firstAge: 65;
25
64
  }>;
@@ -27,32 +66,46 @@ declare const TABLES: {
27
66
  /** Every table the library reads, by its GAD reference. The one set of
28
67
  * instances, so two callers cannot read the same table two ways. */
29
68
  export declare function factorTable<K extends keyof typeof TABLES>(ref: K): (typeof TABLES)[K];
30
- /** Which 1995 Section benefit a factor reduces: the pension and the
31
- * automatic lump sum read different tables. */
69
+ /** Which benefit a factor applies to, where two benefits measured from
70
+ * one pension age read different tables: a 1995 Section pension and its
71
+ * automatic lump sum, and 2015 Section additional pension. */
32
72
  export declare const FACTOR_APPLIES: {
33
73
  readonly pension: "pension";
34
74
  readonly lumpSum: "lump-sum";
75
+ /** Additional pension bought in the 2015 Section, which GAD gives its
76
+ * own late factor (0-422) and the main pension's early one. */
77
+ readonly additionalPension: "additional-pension";
35
78
  };
36
- export type FactorApplies = (typeof FACTOR_APPLIES)[keyof typeof FACTOR_APPLIES];
79
+ /** The benefits each section splits its tables by: typed per section,
80
+ * so a basis cannot name a benefit its section does not have. */
81
+ export type Applies1995 = typeof FACTOR_APPLIES.pension | typeof FACTOR_APPLIES.lumpSum;
82
+ export type Applies2015 = typeof FACTOR_APPLIES.pension | typeof FACTOR_APPLIES.additionalPension;
83
+ /** Which side of the pension age a drawing falls. */
84
+ export declare const FACTOR_DIRECTIONS: {
85
+ readonly early: "early";
86
+ readonly late: "late";
87
+ };
88
+ export type FactorDirection = (typeof FACTOR_DIRECTIONS)[keyof typeof FACTOR_DIRECTIONS];
89
+ /** The 2015 Section's pension age is the member's own, not a fixed one. */
90
+ export declare const MEMBERS_NPA = "npa";
37
91
  /**
38
- * What a factor is measured against. A 1995 Section drawing before 60
39
- * reduces its pension and its automatic lump sum by two different
40
- * tables, so that basis says which of the two it is for.
92
+ * What a factor is measured against, and for which benefit where the
93
+ * tables differ by benefit: a 1995 Section drawing before 60 reduces its
94
+ * pension and its automatic lump sum by two tables, and a late 2015
95
+ * Section drawing uplifts main and additional pension by two.
41
96
  */
42
97
  export type FactorBasis = {
43
- against: 60;
44
- direction: 'early';
45
- applies: FactorApplies;
46
- } | {
47
- against: 65;
48
- direction: 'early';
98
+ against: typeof LEGACY_PENSION_AGES.section1995;
99
+ direction: typeof FACTOR_DIRECTIONS.early;
100
+ applies: Applies1995;
49
101
  } | {
50
- against: 65;
51
- direction: 'late';
102
+ against: typeof LEGACY_PENSION_AGES.section2008;
103
+ direction: FactorDirection;
52
104
  } | {
53
- against: 'npa';
105
+ against: typeof MEMBERS_NPA;
54
106
  npa: number;
55
- direction: 'early' | 'late';
107
+ direction: FactorDirection;
108
+ applies: Applies2015;
56
109
  };
57
110
  /**
58
111
  * Where a factor came from: a table, or one of the two reasons a drawing
@@ -7,35 +7,92 @@
7
7
  * it. So the key is the pension age, not the section — and each section
8
8
  * derives its key privately from its own rules, which is what keeps the
9
9
  * 1995 Section from reading 1-402 although the type would allow it.
10
+ *
11
+ * So one drawing age means different things in different sections. Drawn
12
+ * at 66, a 1995 Section pension is late (its pension age is 60) but takes
13
+ * no uplift, because that section pays none; a 2008 Section pension is
14
+ * late against 65 and reads 2-416; a 2015 Section pension with a Normal
15
+ * Pension Age of 67 is early and reads 0-420. Early or late is always
16
+ * judged against the pension age the section names, never the member's
17
+ * age alone.
10
18
  */
11
19
  import { periodInYearsMonths, npaDate } from './dates.js';
12
20
  import { invariant } from './errors.js';
13
21
  import { FactorTable } from './gad/factor-table.js';
14
22
  import { ERF_0_420 } from './gad/erf-2023-06-30.js';
15
23
  import { LRF_0_421 } from './gad/lrf-2023-06-30.js';
24
+ import { LRF_0_422 } from './gad/lrf-0-422-2023-06-30.js';
16
25
  import { ERF_1_401 } from './gad/erf-1-401-2023-06-30.js';
17
26
  import { ERF_1_402 } from './gad/erf-1-402-2023-06-30.js';
18
27
  import { ERF_1_407 } from './gad/erf-1-407-2023-06-30.js';
19
28
  import { LRF_2_416 } from './gad/lrf-2-416-2023-06-30.js';
29
+ /**
30
+ * The fixed pension ages the legacy sections' factors are measured from,
31
+ * named for the section that sets each. The tables are keyed by pension
32
+ * age (see the header), and these are the only two a legacy benefit has;
33
+ * the 2015 Section's is the member's own Normal Pension Age.
34
+ */
35
+ export const LEGACY_PENSION_AGES = {
36
+ section1995: 60,
37
+ section2008: 65,
38
+ };
39
+ /**
40
+ * The factor tables the library reads, named for what each is for. The
41
+ * value is GAD's own table reference, which is how the table is found in
42
+ * the workbook and the NHSBSA extract to check it; the name is how code
43
+ * picks one, so no branch below reads a reference it has to decode.
44
+ */
45
+ export const FACTOR_TABLES = {
46
+ /** 2015 Section, taken before its Normal Pension Age: main and
47
+ * additional pension alike (ERF1). */
48
+ early2015: '0-420',
49
+ /** 2015 Section main pension, taken after its Normal Pension Age from
50
+ * active service (LRF1). */
51
+ late2015: '0-421',
52
+ /** 2015 Section additional pension, taken after its Normal Pension Age
53
+ * from active service (LRF2). */
54
+ late2015AdditionalPension: '0-422',
55
+ /** 1995 Section pension, taken before 60. */
56
+ early1995Pension: '1-401',
57
+ /** 1995 Section automatic lump sum, taken before 60. */
58
+ early1995LumpSum: '1-407',
59
+ /** 2008 Section, taken before 65. GAD prints it for any benefit
60
+ * with a pension age of 65, hence the name. */
61
+ earlyAge65: '1-402',
62
+ /** 2008 Section, taken after 65. */
63
+ late2008: '2-416',
64
+ };
20
65
  const TABLES = {
21
- '0-420': new FactorTable(ERF_0_420),
22
- '0-421': new FactorTable(LRF_0_421),
23
- '1-401': new FactorTable(ERF_1_401),
24
- '1-402': new FactorTable(ERF_1_402),
25
- '1-407': new FactorTable(ERF_1_407),
26
- '2-416': new FactorTable(LRF_2_416),
66
+ [FACTOR_TABLES.early2015]: new FactorTable(ERF_0_420),
67
+ [FACTOR_TABLES.late2015]: new FactorTable(LRF_0_421),
68
+ [FACTOR_TABLES.late2015AdditionalPension]: new FactorTable(LRF_0_422),
69
+ [FACTOR_TABLES.early1995Pension]: new FactorTable(ERF_1_401),
70
+ [FACTOR_TABLES.early1995LumpSum]: new FactorTable(ERF_1_407),
71
+ [FACTOR_TABLES.earlyAge65]: new FactorTable(ERF_1_402),
72
+ [FACTOR_TABLES.late2008]: new FactorTable(LRF_2_416),
27
73
  };
28
74
  /** Every table the library reads, by its GAD reference. The one set of
29
75
  * instances, so two callers cannot read the same table two ways. */
30
76
  export function factorTable(ref) {
31
77
  return TABLES[ref];
32
78
  }
33
- /** Which 1995 Section benefit a factor reduces: the pension and the
34
- * automatic lump sum read different tables. */
79
+ /** Which benefit a factor applies to, where two benefits measured from
80
+ * one pension age read different tables: a 1995 Section pension and its
81
+ * automatic lump sum, and 2015 Section additional pension. */
35
82
  export const FACTOR_APPLIES = {
36
83
  pension: 'pension',
37
84
  lumpSum: 'lump-sum',
85
+ /** Additional pension bought in the 2015 Section, which GAD gives its
86
+ * own late factor (0-422) and the main pension's early one. */
87
+ additionalPension: 'additional-pension',
88
+ };
89
+ /** Which side of the pension age a drawing falls. */
90
+ export const FACTOR_DIRECTIONS = {
91
+ early: 'early',
92
+ late: 'late',
38
93
  };
94
+ /** The 2015 Section's pension age is the member's own, not a fixed one. */
95
+ export const MEMBERS_NPA = 'npa';
39
96
  /**
40
97
  * Where a factor came from: a table, or one of the two reasons a drawing
41
98
  * reads none. Every 1.000 says why it is 1.000, because "drawn exactly
@@ -49,19 +106,26 @@ export const FACTOR_SOURCES = {
49
106
  };
50
107
  /** The table a basis reads, and how it is keyed. */
51
108
  function tableFor(basis) {
52
- if (basis.against === 'npa') {
53
- return basis.direction === 'early'
54
- ? TABLES['0-420']
55
- : TABLES['0-421'];
109
+ const section2015 = basis.against === MEMBERS_NPA;
110
+ const section1995 = basis.against === LEGACY_PENSION_AGES.section1995;
111
+ const early = basis.direction === FACTOR_DIRECTIONS.early;
112
+ if (section2015) {
113
+ const additionalPension = basis.applies === FACTOR_APPLIES.additionalPension;
114
+ if (early)
115
+ return TABLES[FACTOR_TABLES.early2015];
116
+ return additionalPension
117
+ ? TABLES[FACTOR_TABLES.late2015AdditionalPension]
118
+ : TABLES[FACTOR_TABLES.late2015];
56
119
  }
57
- if (basis.against === 60) {
58
- return basis.applies === FACTOR_APPLIES.pension
59
- ? TABLES['1-401']
60
- : TABLES['1-407'];
120
+ if (section1995) {
121
+ const pension = basis.applies === FACTOR_APPLIES.pension;
122
+ return pension
123
+ ? TABLES[FACTOR_TABLES.early1995Pension]
124
+ : TABLES[FACTOR_TABLES.early1995LumpSum];
61
125
  }
62
- return basis.direction === 'early'
63
- ? TABLES['1-402']
64
- : TABLES['2-416'];
126
+ return early
127
+ ? TABLES[FACTOR_TABLES.earlyAge65]
128
+ : TABLES[FACTOR_TABLES.late2008];
65
129
  }
66
130
  const keyedByAge = (table) => table.index.by === 'age';
67
131
  /**
@@ -70,15 +134,22 @@ const keyedByAge = (table) => table.index.by === 'age';
70
134
  * in the section that derived it and fails loud.
71
135
  */
72
136
  export function readFactor(basis, dateOfBirth, drawn) {
73
- const pensionAge = basis.against === 'npa' ? basis.npa : basis.against;
137
+ const section2015 = basis.against === MEMBERS_NPA;
138
+ const pensionAge = section2015 ? basis.npa : basis.against;
74
139
  const at = npaDate(dateOfBirth, pensionAge);
75
- if (drawn.getTime() === at.getTime()) {
140
+ const drawnAtPensionAge = drawn.getTime() === at.getTime();
141
+ if (drawnAtPensionAge) {
76
142
  return { source: FACTOR_SOURCES.atPensionAge, factor: 1 };
77
143
  }
78
- invariant((drawn < at) === (basis.direction === 'early'), `factor basis says ${basis.direction} for a drawing on `
144
+ const drawnEarly = drawn < at;
145
+ invariant(drawnEarly === (basis.direction === FACTOR_DIRECTIONS.early), `factor basis says ${basis.direction} for a drawing on `
79
146
  + `${drawn.toDateString()} against ${at.toDateString()}`);
80
147
  const table = tableFor(basis);
81
- if (keyedByAge(table)) {
148
+ // The 1995 and 2008 Sections' tables are read at the member's age on
149
+ // the day they draw; the 2015 Section's at the time to or after its
150
+ // Normal Pension Age.
151
+ const readAtMembersAge = keyedByAge(table);
152
+ if (readAtMembersAge) {
82
153
  return {
83
154
  source: FACTOR_SOURCES.table,
84
155
  factor: table.factorAtAge(periodInYearsMonths(dateOfBirth, drawn)),
@@ -86,7 +157,7 @@ export function readFactor(basis, dateOfBirth, drawn) {
86
157
  provenance: table.provenance,
87
158
  };
88
159
  }
89
- const period = drawn < at
160
+ const period = drawnEarly
90
161
  ? periodInYearsMonths(drawn, at)
91
162
  : periodInYearsMonths(at, drawn);
92
163
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"factor-basis.js","sourceRoot":"","sources":["../src/factor-basis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAC,mBAAmB,EAAE,OAAO,EAAC,MAAM,YAAY,CAAC;AACxD,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAOlD,OAAO,EAAC,SAAS,EAAC,MAAM,y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AAC,WAAW,EAAE,KAAK,CAAC,CAAC;YAClE,SAAS,EAAE,KAAK,CAAC,IAAI;YACrB,UAAU,EAAE,KAAK,CAAC,UAAU;SAC7B,CAAC;IACJ,CAAC;IACD,MAAM,MAAM,GAAG,UAAU;QACvB,CAAC,CAAC,mBAAmB,CAAC,KAAK,EAAE,EAAE,CAAC;QAChC,CAAC,CAAC,mBAAmB,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IACnC,OAAO;QACL,MAAM,EAAE,cAAc,CAAC,KAAK;QAC5B,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC;QAC/B,SAAS,EAAE,KAAK,CAAC,IAAI;QACrB,UAAU,EAAE,KAAK,CAAC,UAAU;KAC7B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,180 @@
1
+ /**
2
+ * Verbatim transcription — GAD "NHSPS_EW — Consolidated Factor
3
+ * Spreadsheet", table 0-703 (Table S), factors issued 3 October 2023, in
4
+ * use from 1 April 2024. Sheet x-703.
5
+ *
6
+ * Single premium, in pounds, per £250 a year of additional pension at
7
+ * the date of election, by age when notice of election is given (16 to
8
+ * 65): personal, and personal and dependants'.
9
+ *
10
+ * To check it: open sheet x-703 of "GAD NHS_EW Consolidated Factors,
11
+ * version 2026-01", the only publication of these tables: GAD's download
12
+ * is `sourceUrl` below, and the archived copy is SA-01 in
13
+ * docs/source-archive.md. The workbook's Version control sheet shows
14
+ * x-703 to x-722 last updated in version 2023-04; the 2026-01 issue
15
+ * touched other tables. Delete this file whole when a later issue
16
+ * supersedes the table.
17
+ */
18
+ /** 2015 Scheme additional pension, lump sum — Table 0-703. */
19
+ export declare const AP_0_703: {
20
+ readonly provenance: {
21
+ readonly tableRef: "0-703";
22
+ readonly sheet: "x-703";
23
+ readonly guidanceRef: "Table S";
24
+ readonly sourceUrl: string;
25
+ readonly issued: import("../iso-date.js").IsoDate;
26
+ readonly implemented: import("../iso-date.js").IsoDate;
27
+ };
28
+ readonly firstAge: 16;
29
+ readonly rows: readonly [{
30
+ readonly personal: 2070;
31
+ readonly "personal-and-dependants": 2240;
32
+ }, {
33
+ readonly personal: 2100;
34
+ readonly "personal-and-dependants": 2270;
35
+ }, {
36
+ readonly personal: 2140;
37
+ readonly "personal-and-dependants": 2310;
38
+ }, {
39
+ readonly personal: 2170;
40
+ readonly "personal-and-dependants": 2350;
41
+ }, {
42
+ readonly personal: 2200;
43
+ readonly "personal-and-dependants": 2380;
44
+ }, {
45
+ readonly personal: 2230;
46
+ readonly "personal-and-dependants": 2420;
47
+ }, {
48
+ readonly personal: 2260;
49
+ readonly "personal-and-dependants": 2450;
50
+ }, {
51
+ readonly personal: 2290;
52
+ readonly "personal-and-dependants": 2490;
53
+ }, {
54
+ readonly personal: 2330;
55
+ readonly "personal-and-dependants": 2520;
56
+ }, {
57
+ readonly personal: 2360;
58
+ readonly "personal-and-dependants": 2560;
59
+ }, {
60
+ readonly personal: 2390;
61
+ readonly "personal-and-dependants": 2590;
62
+ }, {
63
+ readonly personal: 2430;
64
+ readonly "personal-and-dependants": 2630;
65
+ }, {
66
+ readonly personal: 2460;
67
+ readonly "personal-and-dependants": 2670;
68
+ }, {
69
+ readonly personal: 2500;
70
+ readonly "personal-and-dependants": 2710;
71
+ }, {
72
+ readonly personal: 2530;
73
+ readonly "personal-and-dependants": 2740;
74
+ }, {
75
+ readonly personal: 2570;
76
+ readonly "personal-and-dependants": 2780;
77
+ }, {
78
+ readonly personal: 2610;
79
+ readonly "personal-and-dependants": 2820;
80
+ }, {
81
+ readonly personal: 2640;
82
+ readonly "personal-and-dependants": 2860;
83
+ }, {
84
+ readonly personal: 2680;
85
+ readonly "personal-and-dependants": 2900;
86
+ }, {
87
+ readonly personal: 2720;
88
+ readonly "personal-and-dependants": 2940;
89
+ }, {
90
+ readonly personal: 2760;
91
+ readonly "personal-and-dependants": 2980;
92
+ }, {
93
+ readonly personal: 2800;
94
+ readonly "personal-and-dependants": 3020;
95
+ }, {
96
+ readonly personal: 2830;
97
+ readonly "personal-and-dependants": 3070;
98
+ }, {
99
+ readonly personal: 2870;
100
+ readonly "personal-and-dependants": 3110;
101
+ }, {
102
+ readonly personal: 2910;
103
+ readonly "personal-and-dependants": 3150;
104
+ }, {
105
+ readonly personal: 2950;
106
+ readonly "personal-and-dependants": 3190;
107
+ }, {
108
+ readonly personal: 3000;
109
+ readonly "personal-and-dependants": 3240;
110
+ }, {
111
+ readonly personal: 3040;
112
+ readonly "personal-and-dependants": 3280;
113
+ }, {
114
+ readonly personal: 3080;
115
+ readonly "personal-and-dependants": 3330;
116
+ }, {
117
+ readonly personal: 3120;
118
+ readonly "personal-and-dependants": 3370;
119
+ }, {
120
+ readonly personal: 3200;
121
+ readonly "personal-and-dependants": 3450;
122
+ }, {
123
+ readonly personal: 3290;
124
+ readonly "personal-and-dependants": 3540;
125
+ }, {
126
+ readonly personal: 3380;
127
+ readonly "personal-and-dependants": 3630;
128
+ }, {
129
+ readonly personal: 3460;
130
+ readonly "personal-and-dependants": 3720;
131
+ }, {
132
+ readonly personal: 3510;
133
+ readonly "personal-and-dependants": 3770;
134
+ }, {
135
+ readonly personal: 3560;
136
+ readonly "personal-and-dependants": 3820;
137
+ }, {
138
+ readonly personal: 3610;
139
+ readonly "personal-and-dependants": 3870;
140
+ }, {
141
+ readonly personal: 3660;
142
+ readonly "personal-and-dependants": 3930;
143
+ }, {
144
+ readonly personal: 3720;
145
+ readonly "personal-and-dependants": 3980;
146
+ }, {
147
+ readonly personal: 3770;
148
+ readonly "personal-and-dependants": 4030;
149
+ }, {
150
+ readonly personal: 3820;
151
+ readonly "personal-and-dependants": 4090;
152
+ }, {
153
+ readonly personal: 3880;
154
+ readonly "personal-and-dependants": 4140;
155
+ }, {
156
+ readonly personal: 3940;
157
+ readonly "personal-and-dependants": 4200;
158
+ }, {
159
+ readonly personal: 3990;
160
+ readonly "personal-and-dependants": 4260;
161
+ }, {
162
+ readonly personal: 4050;
163
+ readonly "personal-and-dependants": 4320;
164
+ }, {
165
+ readonly personal: 4120;
166
+ readonly "personal-and-dependants": 4380;
167
+ }, {
168
+ readonly personal: 4180;
169
+ readonly "personal-and-dependants": 4450;
170
+ }, {
171
+ readonly personal: 4310;
172
+ readonly "personal-and-dependants": 4570;
173
+ }, {
174
+ readonly personal: 4440;
175
+ readonly "personal-and-dependants": 4700;
176
+ }, {
177
+ readonly personal: 4580;
178
+ readonly "personal-and-dependants": 4840;
179
+ }];
180
+ };
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Verbatim transcription — GAD "NHSPS_EW — Consolidated Factor
3
+ * Spreadsheet", table 0-703 (Table S), factors issued 3 October 2023, in
4
+ * use from 1 April 2024. Sheet x-703.
5
+ *
6
+ * Single premium, in pounds, per £250 a year of additional pension at
7
+ * the date of election, by age when notice of election is given (16 to
8
+ * 65): personal, and personal and dependants'.
9
+ *
10
+ * To check it: open sheet x-703 of "GAD NHS_EW Consolidated Factors,
11
+ * version 2026-01", the only publication of these tables: GAD's download
12
+ * is `sourceUrl` below, and the archived copy is SA-01 in
13
+ * docs/source-archive.md. The workbook's Version control sheet shows
14
+ * x-703 to x-722 last updated in version 2023-04; the 2026-01 issue
15
+ * touched other tables. Delete this file whole when a later issue
16
+ * supersedes the table.
17
+ */
18
+ import { ADDITIONAL_PENSION_COVERS } from './additional-pension-table.js';
19
+ import { isoDate } from '../iso-date.js';
20
+ const { personal: P, withDependants: D } = ADDITIONAL_PENSION_COVERS;
21
+ /** 2015 Scheme additional pension, lump sum — Table 0-703. */
22
+ export const AP_0_703 = {
23
+ provenance: {
24
+ tableRef: '0-703',
25
+ sheet: 'x-703',
26
+ guidanceRef: 'Table S',
27
+ sourceUrl: 'https://gadfactorguidancehub.co.uk/download'
28
+ + '/consolidated_factors/NHS_EW/NHS_EW_Consolidated_Factors_2026-01.xlsx',
29
+ issued: isoDate('2023-10-03'),
30
+ implemented: isoDate('2024-04-01'),
31
+ },
32
+ firstAge: 16,
33
+ rows: [
34
+ // £ per £250 a year: personal with dependants' age
35
+ { [P]: 2070, [D]: 2240 }, // 16
36
+ { [P]: 2100, [D]: 2270 }, // 17
37
+ { [P]: 2140, [D]: 2310 }, // 18
38
+ { [P]: 2170, [D]: 2350 }, // 19
39
+ { [P]: 2200, [D]: 2380 }, // 20
40
+ { [P]: 2230, [D]: 2420 }, // 21
41
+ { [P]: 2260, [D]: 2450 }, // 22
42
+ { [P]: 2290, [D]: 2490 }, // 23
43
+ { [P]: 2330, [D]: 2520 }, // 24
44
+ { [P]: 2360, [D]: 2560 }, // 25
45
+ { [P]: 2390, [D]: 2590 }, // 26
46
+ { [P]: 2430, [D]: 2630 }, // 27
47
+ { [P]: 2460, [D]: 2670 }, // 28
48
+ { [P]: 2500, [D]: 2710 }, // 29
49
+ { [P]: 2530, [D]: 2740 }, // 30
50
+ { [P]: 2570, [D]: 2780 }, // 31
51
+ { [P]: 2610, [D]: 2820 }, // 32
52
+ { [P]: 2640, [D]: 2860 }, // 33
53
+ { [P]: 2680, [D]: 2900 }, // 34
54
+ { [P]: 2720, [D]: 2940 }, // 35
55
+ { [P]: 2760, [D]: 2980 }, // 36
56
+ { [P]: 2800, [D]: 3020 }, // 37
57
+ { [P]: 2830, [D]: 3070 }, // 38
58
+ { [P]: 2870, [D]: 3110 }, // 39
59
+ { [P]: 2910, [D]: 3150 }, // 40
60
+ { [P]: 2950, [D]: 3190 }, // 41
61
+ { [P]: 3000, [D]: 3240 }, // 42
62
+ { [P]: 3040, [D]: 3280 }, // 43
63
+ { [P]: 3080, [D]: 3330 }, // 44
64
+ { [P]: 3120, [D]: 3370 }, // 45
65
+ { [P]: 3200, [D]: 3450 }, // 46
66
+ { [P]: 3290, [D]: 3540 }, // 47
67
+ { [P]: 3380, [D]: 3630 }, // 48
68
+ { [P]: 3460, [D]: 3720 }, // 49
69
+ { [P]: 3510, [D]: 3770 }, // 50
70
+ { [P]: 3560, [D]: 3820 }, // 51
71
+ { [P]: 3610, [D]: 3870 }, // 52
72
+ { [P]: 3660, [D]: 3930 }, // 53
73
+ { [P]: 3720, [D]: 3980 }, // 54
74
+ { [P]: 3770, [D]: 4030 }, // 55
75
+ { [P]: 3820, [D]: 4090 }, // 56
76
+ { [P]: 3880, [D]: 4140 }, // 57
77
+ { [P]: 3940, [D]: 4200 }, // 58
78
+ { [P]: 3990, [D]: 4260 }, // 59
79
+ { [P]: 4050, [D]: 4320 }, // 60
80
+ { [P]: 4120, [D]: 4380 }, // 61
81
+ { [P]: 4180, [D]: 4450 }, // 62
82
+ { [P]: 4310, [D]: 4570 }, // 63
83
+ { [P]: 4440, [D]: 4700 }, // 64
84
+ { [P]: 4580, [D]: 4840 }, // 65
85
+ ],
86
+ };
87
+ //# sourceMappingURL=additional-pension-0-703-2023-10-03.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"additional-pension-0-703-2023-10-03.js","sourceRoot":"","sources":["../../src/gad/additional-pension-0-703-2023-10-03.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,yBAAyB,EAAC,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAEvC,MAAM,EAAC,QAAQ,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAC,GAAG,yBAAyB,CAAC;AAEnE,8DAA8D;AAC9D,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO;QACjB,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,SAAS;QACtB,SAAS,EAAE,6CAA6C;cACpD,uEAAuE;QAC3E,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC;QAC7B,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC;KACnC;IACD,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE;QACJ,yDAAyD;QACzD,EAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAC,EAAE,KAAK;QAC7B,EAAC,CAAC,CA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
6
+ * Regular contribution elections, personal benefits,
7
+ * Normal Pension Age 65: the monthly contribution, in pounds, per £250
8
+ * a year of additional pension at the date of election, by age when
9
+ * notice of election is given and a payment period of 1 to 20 whole
10
+ * years. Each row stops where the period would pass the pension age,
11
+ * exactly as printed.
12
+ *
13
+ * To check it: open sheet x-712 of "GAD NHS_EW Consolidated Factors,
14
+ * version 2026-01", the only publication of these tables: GAD's download
15
+ * is `sourceUrl` below, and the archived copy is SA-01 in
16
+ * docs/source-archive.md. The workbook's Version control sheet shows
17
+ * x-703 to x-722 last updated in version 2023-04; the 2026-01 issue
18
+ * touched other tables. Delete this file whole when a later issue
19
+ * supersedes the table.
20
+ */
21
+ /** 2015 Scheme additional pension, instalments — Table 0-712 (P65). */
22
+ export declare const AP_0_712: {
23
+ readonly provenance: {
24
+ readonly tableRef: "0-712";
25
+ readonly sheet: "x-712";
26
+ readonly guidanceRef: "Table P65";
27
+ readonly sourceUrl: string;
28
+ readonly issued: import("../iso-date.js").IsoDate;
29
+ readonly implemented: import("../iso-date.js").IsoDate;
30
+ };
31
+ readonly npa: 65;
32
+ readonly cover: "personal";
33
+ readonly firstAge: 16;
34
+ readonly rows: readonly [readonly [198.5, 101.1, 68.6, 52.4, 42.7, 36.2, 31.6, 28.1, 25.5, 23.3, 21.6, 20.1, 18.9, 17.8, 16.9, 16.1, 15.4, 14.8, 14.3, 13.8], readonly [201.5, 102.6, 69.6, 53.2, 43.3, 36.8, 32.1, 28.6, 25.8, 23.7, 21.9, 20.4, 19.2, 18.1, 17.2, 16.4, 15.7, 15, 14.5, 14], readonly [204.4, 104.1, 70.7, 54, 44, 37.3, 32.5, 29, 26.2, 24, 22.2, 20.7, 19.4, 18.4, 17.4, 16.6, 15.9, 15.3, 14.7, 14.2], readonly [207.5, 105.6, 71.7, 54.8, 44.6, 37.9, 33, 29.4, 26.6, 24.4, 22.5, 21, 19.7, 18.6, 17.7, 16.9, 16.1, 15.5, 14.9, 14.4], readonly [210.5, 107.2, 72.8, 55.6, 45.3, 38.4, 33.5, 29.8, 27, 24.7, 22.9, 21.3, 20, 18.9, 18, 17.1, 16.4, 15.7, 15.2, 14.6], readonly [213.6, 108.8, 73.8, 56.4, 45.9, 39, 34, 30.3, 27.4, 25.1, 23.2, 21.6, 20.3, 19.2, 18.2, 17.4, 16.6, 16, 15.4, 14.9], readonly [216.7, 110.4, 74.9, 57.2, 46.6, 39.5, 34.5, 30.7, 27.8, 25.5, 23.5, 22, 20.6, 19.5, 18.5, 17.6, 16.9, 16.2, 15.6, 15.1], readonly [219.9, 112, 76, 58.1, 47.3, 40.1, 35, 31.2, 28.2, 25.8, 23.9, 22.3, 20.9, 19.8, 18.8, 17.9, 17.1, 16.4, 15.8, 15.3], readonly [223.1, 113.6, 77.1, 58.9, 48, 40.7, 35.5, 31.6, 28.6, 26.2, 24.2, 22.6, 21.2, 20.1, 19, 18.2, 17.4, 16.7, 16.1, 15.5], readonly [226.3, 115.3, 78.3, 59.8, 48.7, 41.3, 36, 32.1, 29, 26.6, 24.6, 22.9, 21.5, 20.4, 19.3, 18.4, 17.6, 16.9, 16.3, 15.8], readonly [229.6, 116.9, 79.4, 60.6, 49.4, 41.9, 36.6, 32.6, 29.5, 27, 25, 23.3, 21.9, 20.7, 19.6, 18.7, 17.9, 17.2, 16.6, 16], readonly [233, 118.6, 80.6, 61.5, 50.1, 42.5, 37.1, 33, 29.9, 27.4, 25.3, 23.6, 22.2, 21, 19.9, 19, 18.2, 17.4, 16.8, 16.2], readonly [236.3, 120.4, 81.7, 62.4, 50.8, 43.1, 37.6, 33.5, 30.3, 27.8, 25.7, 24, 22.5, 21.3, 20.2, 19.3, 18.4, 17.7, 17.1, 16.5], readonly [239.8, 122.1, 82.9, 63.3, 51.6, 43.8, 38.2, 34, 30.8, 28.2, 26.1, 24.3, 22.8, 21.6, 20.5, 19.5, 18.7, 18, 17.3, 16.7], readonly [243.2, 123.9, 84.1, 64.2, 52.3, 44.4, 38.7, 34.5, 31.2, 28.6, 26.5, 24.7, 23.2, 21.9, 20.8, 19.8, 19, 18.2, 17.6, 17], readonly [246.8, 125.7, 85.3, 65.2, 53.1, 45.1, 39.3, 35, 31.7, 29, 26.9, 25, 23.5, 22.2, 21.1, 20.1, 19.3, 18.5, 17.8, 17.2], readonly [250.3, 127.5, 86.6, 66.1, 53.9, 45.7, 39.9, 35.5, 32.2, 29.5, 27.2, 25.4, 23.9, 22.6, 21.4, 20.4, 19.6, 18.8, 18.1, 17.5], readonly [253.9, 129.3, 87.8, 67.1, 54.7, 46.4, 40.5, 36.1, 32.6, 29.9, 27.7, 25.8, 24.2, 22.9, 21.7, 20.7, 19.8, 19.1, 18.4, 17.8], readonly [257.6, 131.2, 89.1, 68.1, 55.4, 47.1, 41.1, 36.6, 33.1, 30.3, 28.1, 26.2, 24.6, 23.2, 22.1, 21, 20.1, 19.4, 18.7, 18], readonly [261.3, 133.1, 90.4, 69, 56.3, 47.7, 41.7, 37.1, 33.6, 30.8, 28.5, 26.6, 25, 23.6, 22.4, 21.4, 20.5, 19.6, 18.9, 18.3], readonly [265.1, 135, 91.7, 70, 57.1, 48.4, 42.3, 37.7, 34.1, 31.2, 28.9, 27, 25.3, 23.9, 22.7, 21.7, 20.8, 19.9, 19.2, 18.6], readonly [268.9, 137, 93, 71.1, 57.9, 49.1, 42.9, 38.2, 34.6, 31.7, 29.3, 27.4, 25.7, 24.3, 23.1, 22, 21.1, 20.3, 19.5, 18.9], readonly [272.7, 138.9, 94.4, 72.1, 58.7, 49.8, 43.5, 38.8, 35.1, 32.2, 29.8, 27.8, 26.1, 24.7, 23.4, 22.3, 21.4, 20.6, 19.8, 19.2], readonly [276.7, 140.9, 95.7, 73.1, 59.6, 50.6, 44.2, 39.3, 35.6, 32.6, 30.2, 28.2, 26.5, 25, 23.8, 22.7, 21.7, 20.9, 20.1, 19.5], readonly [280.6, 143, 97.1, 74.2, 60.5, 51.3, 44.8, 39.9, 36.1, 33.1, 30.6, 28.6, 26.9, 25.4, 24.1, 23, 22.1, 21.2, 20.5, 19.8], readonly [284.7, 145, 98.5, 75.3, 61.3, 52.1, 45.5, 40.5, 36.7, 33.6, 31.1, 29, 27.3, 25.8, 24.5, 23.4, 22.4, 21.6, 20.8, 20.1], readonly [288.8, 147.1, 99.9, 76.4, 62.2, 52.8, 46.1, 41.1, 37.2, 34.1, 31.6, 29.5, 27.7, 26.2, 24.9, 23.8, 22.8, 21.9, 21.1, 20.4], readonly [292.9, 149.3, 101.4, 77.5, 63.2, 53.6, 46.8, 41.7, 37.8, 34.6, 32.1, 29.9, 28.1, 26.6, 25.3, 24.2, 23.2, 22.3, 21.5, 20.8], readonly [297.1, 151.4, 102.9, 78.6, 64.1, 54.4, 47.5, 42.3, 38.3, 35.2, 32.6, 30.4, 28.6, 27, 25.7, 24.6, 23.5, 22.6, 21.9, 21.2], readonly [301.4, 153.6, 104.4, 79.8, 65, 55.2, 48.2, 43, 38.9, 35.7, 33.1, 30.9, 29, 27.5, 26.1, 25, 23.9, 23, 22.2, 21.5], readonly [305.8, 155.8, 105.9, 80.9, 66, 56, 48.9, 43.6, 39.5, 36.2, 33.6, 31.4, 29.5, 27.9, 26.6, 25.4, 24.3, 23.4, 22.6], readonly [310.2, 158.1, 107.4, 82.1, 67, 56.9, 49.7, 44.3, 40.1, 36.8, 34.1, 31.9, 30, 28.4, 27, 25.8, 24.8, 23.9], readonly [314.7, 160.4, 109, 83.3, 68, 57.7, 50.5, 45, 40.8, 37.4, 34.7, 32.4, 30.5, 28.9, 27.5, 26.3, 25.2], readonly [319.3, 162.8, 110.6, 84.6, 69, 58.6, 51.3, 45.7, 41.5, 38, 35.3, 33, 31, 29.4, 28, 26.8], readonly [324, 165.2, 112.3, 85.9, 70.1, 59.6, 52.1, 46.5, 42.1, 38.7, 35.9, 33.6, 31.6, 29.9, 28.5], readonly [328.8, 167.7, 114, 87.3, 71.2, 60.5, 52.9, 47.3, 42.9, 39.4, 36.5, 34.2, 32.2, 30.5], readonly [333.7, 170.2, 115.8, 88.6, 72.3, 61.5, 53.8, 48.1, 43.6, 40, 37.2, 34.8, 32.8], readonly [338.6, 172.8, 117.6, 90, 73.5, 62.5, 54.7, 48.9, 44.3, 40.7, 37.8, 35.4], readonly [343.7, 175.4, 119.4, 91.4, 74.7, 63.5, 55.6, 49.7, 45.1, 41.5, 38.5], readonly [348.9, 178.1, 121.3, 92.9, 75.9, 64.6, 56.6, 50.6, 45.9, 42.2], readonly [354.2, 180.9, 123.2, 94.4, 77.2, 65.7, 57.5, 51.4, 46.7], readonly [359.7, 183.8, 125.2, 96, 78.5, 66.8, 58.5, 52.4], readonly [365.4, 186.7, 127.3, 97.6, 79.8, 68, 59.6], readonly [371.3, 189.8, 129.4, 99.2, 81.2, 69.2], readonly [377.4, 193, 131.6, 101, 82.7], readonly [383.7, 196.3, 133.9, 102.8], readonly [390.4, 199.8, 136.4], readonly [397.3, 203.4], readonly [404.6]];
35
+ };