Sitemap

Member-only story

PTO — working days

Why and how I replaced my initial set up

8 min readSep 16, 2024

--

You can see my initial setup for handling daily working hours below.

my initial set up

This setup worked well for calculating daily hours worked, especially when everyone worked full-time. In those cases, a half-day off (for sick leave or holidays) was a simple calculation: 0.5 * daily working hours.

However, as the organization grew, we encountered problems due to the increasing variety in work schedules. We had some employees with long working days (see the first line) and others with shorter variations (like the last line). In these scenarios, a half-day off was no longer accurately represented by 0.5 * daily working hours.

Quick fixes might involve complex and hard-to-maintain SwitchIf() functions, but I'm against implementing those when a review of our current setup could lead to a more flexible and maintainable solution.

A Different Approach

Instead of the typical spreadsheet layout, we’ve shifted this logic to a table structure where rows, not columns, are the defining element. You can see how this works below. Admittedly, this view isn’t…

--

--

Christiaan Huizer
Christiaan Huizer

Written by Christiaan Huizer

I write every week about how to Coda . You find blogs for beginners and experienced makers. Until 7 days after publication you read my blog for free. Welcome!

No responses yet