@equisoft/tax-ca 2022.4.0 → 2022.5.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.
@@ -3,4 +3,5 @@ export interface RegisteredRetirementIncomeFund {
3
3
  [K: number]: number;
4
4
  };
5
5
  }
6
+ export declare function getMinimumWithdrawalPercentage(age: number): number;
6
7
  export declare const RRIF: RegisteredRetirementIncomeFund;
@@ -9,7 +9,11 @@ Revised
9
9
  */
10
10
  // tslint:enable:max-line-length
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RRIF = void 0;
12
+ exports.RRIF = exports.getMinimumWithdrawalPercentage = void 0;
13
+ function getMinimumWithdrawalPercentage(age) {
14
+ return age >= 71 ? exports.RRIF.MIN_WITHDRAWAL_PCT[age] : 1 / (90 - age);
15
+ }
16
+ exports.getMinimumWithdrawalPercentage = getMinimumWithdrawalPercentage;
13
17
  exports.RRIF = {
14
18
  MIN_WITHDRAWAL_PCT: {
15
19
  50: 0.0250,
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.RRSP = void 0;
13
13
  exports.RRSP = {
14
14
  CONVERSION_AGE: {
15
- MIN: 55,
15
+ MIN: 0,
16
16
  MAX: 71,
17
17
  },
18
18
  MAX_CONTRIBUTION: 29210,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/tax-ca",
3
- "version": "2022.4.0",
3
+ "version": "2022.5.0",
4
4
  "description": "Canadian tax data and calculation functions.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,14 +34,14 @@
34
34
  "watch": "tsc --watch"
35
35
  },
36
36
  "devDependencies": {
37
- "@equisoft/tslint-config": "~0.0.8",
38
- "@types/jest": "^27.4.0",
39
- "@types/node": "^17.0.7",
40
- "jest": "^27.4.7",
41
- "jest-junit": "^13.0.0",
42
- "ts-jest": "^27.1.3",
43
- "tslint": "~5.20.0",
44
- "typescript": "~4.6.2"
37
+ "@equisoft/tslint-config": "0.0.8",
38
+ "@types/jest": "27.4.1",
39
+ "@types/node": "17.0.23",
40
+ "jest": "27.5.1",
41
+ "jest-junit": "13.1.0",
42
+ "ts-jest": "27.1.4",
43
+ "tslint": "5.20.1",
44
+ "typescript": "4.6.3"
45
45
  },
46
46
  "dependencies": {}
47
47
  }