cdn-payroll

Crates.iocdn-payroll
lib.rscdn-payroll
version0.1.1
created_at2025-02-22 21:57:15.450937+00
updated_at2025-02-23 21:38:28.041621+00
descriptionCanadian Payroll Library
homepagehttps://statbook.io
repositoryhttps://github.com/MrCartaaa/cdn-payroll
max_upload_size
id1565839
size34,884
Carter Steele (MrCartaaa)

documentation

README

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
Commit count: 9

cargo fmt