https://www.daemonology.net/blog/2023-12-31-Canadian-payroll-dependency-chart.html Daemonic Dispatches Musings from Colin Percival A Canadian payroll dependency chart The Canada Revenue Agency publishes, on a regular basis (they're now up to the 119th edition), a document entitled "Payroll Deductions Formulas". This document contains all of the formulas needed to calculate payroll deductions collected by the CRA: Canada Pension Plan, Employment Insurance, and Income Tax. As someone running a small business in Canada and not wanting to use an external payroll provider, I implement these formulas myself in a spreadsheet. Unfortunately, like most aspects of the tax system, this steadily increases in complexity, and this year with the Canada Pension Plan including not just "base" premiums and "additional" premiums but also "second additional premiums", I needed to rewrite my spreadsheet from scratch; and also very unfortunately, the authors of the document have failed to grasp an essential detail of software: You have to calculate values before you use them. This results in a document requiring constant jumping back and forth to find where each value is calculated -- before or after it is used. To help myself keep everything straight, I decided to draw a dependency chart using GraphViz. There are 79 nodes in the graph, starting with values like "Year's Annual Maximum Pensionable Earnings" ($73200 in the 2024 tax year), and ending up with "Total payroll deductions". Note that I did not write the formulas onto the chart -- I simply recorded which other values they depend upon, so someone (aka myself) looking at the chart can figure out what to calculate first without going around in circles. Oh, and to keep things simple, I assumed I wasn't dealing with commissioned employees, employees entering or exiting the Canada Pension Plan, or anyone resident in Quebec, Nova Scotia, Yukon, or Ontario (each of which has their own special tax complications). Here's what it looks like; click for a full size version (warning, 5627x2033 image): [payroll-sm] Posted at 2023-12-31 00:00 | Permanent link | Comments View the forum thread. blog comments powered by Disqus Recent posts A Canadian payroll dependency chart Some late-breaking FreeBSD 14 breakage Tarsnap has given 2^18 dollars to open source Announcing the FreeBSD/Firecracker platform FreeBSD on the Graviton 3 FreeBSD/EC2: What I've been up to FreeBSD/EC2 AMI Systems Manager Public Parameters EC2 boot time benchmarking My EC2 wishlist 107 Lightbulbs Monthly Archives December 2023 November 2023 October 2023 October 2022 May 2022 March 2022 August 2021 June 2021 March 2021 September 2020 May 2020 January 2020 November 2019 October 2019 February 2019 December 2018 July 2018 April 2018 February 2018 January 2018 November 2017 October 2017 June 2017 May 2017 February 2017 January 2017 October 2016 April 2016 January 2016 December 2015 November 2015 September 2015 August 2015 April 2015 January 2015 December 2014 November 2014 October 2014 September 2014 April 2014 March 2014 February 2014 January 2014 December 2013 November 2013 September 2013 August 2013 June 2013 January 2013 December 2012 November 2012 October 2012 September 2012 August 2012 July 2012 May 2012 March 2012 January 2012 December 2011 September 2011 August 2011 July 2011 June 2011 May 2011 April 2011 March 2011 February 2011 January 2011 December 2010 October 2010 September 2010 August 2010 July 2010 June 2010 April 2010 March 2010 December 2009 October 2009 September 2009 August 2009 July 2009 June 2009 May 2009 April 2009 March 2009 February 2009 January 2009 December 2008 November 2008 October 2008 September 2008 June 2008 May 2008 April 2008 March 2008 February 2008 January 2008 December 2007 November 2007 October 2007 September 2007 August 2007 June 2007 May 2007 March 2007 February 2007 January 2007 November 2006 October 2006 September 2006 August 2006 July 2006 June 2006 May 2006 April 2006 March 2006 January 2006 December 2005 November 2005 October 2005 September 2005 Yearly Archives 2023 2022 2021 2020 2019 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 RSS