2 releases

0.1.1 Feb 23, 2025
0.1.0 Feb 22, 2025

#81 in Finance

Download history 237/week @ 2025-02-19 65/week @ 2025-02-26

302 downloads per month

MIT/Apache

35KB
404 lines

Canadian Payroll Crate

Based on the Payroll Deductions Formulas, 120th Edition


Current Implementation

  • There is no implementation for provincial taxes other than Ontario
  • There is incomplete implementation for taxes on commissionable and non-periodic payment earnings
  • certain values are hard coded into the function as I have yet to find out where their origin is; otherwise, they are defined as constants, by year
  • unit testing incomplete
  • the crate is not mature enough for integration tests, but this will be implemented during that phase
  • calculations currently only work for CY 2025

2025 Q1 Road Map

  1. complete unit testing
  2. identify constants by year and use them in the functions This will be done by adding a ctx param into each function that will identify the date/year of the request, and the constants identified from there. These constants will be extracted from the CRA provided CSV files
  3. implement provincial tax calculations
  4. implement commissionable and non-periodic payment earnings tax calculations

No runtime deps