Hello everyone, In Germany, there is a regulation in the Occupational Health and Safety Act that states workers who work on Sunday or on holidays receive an additional allowance on their salary. This involves a complex formula, which even ChatGPT struggles with. Maybe there is someone here who is smarter than AI.
My table includes a date field including time field named {Start} and a date field including time field named {End}. I want:
1. Formula field = formula that calculates the hours/minutes that fall within the period of Sunday.
Example : Max starts his shift at saturday 8 PM and works until Sunday 4 AM. The formula should now calculate 4 hours.
2. Formula field = formula that calculates the hours/minutes that fall within the period of holidays. The holiday dates should be defined in the forumla itselfs = ( 01.01.2024 / 29.03.2024 / 01.04.2024 / 01.05.2024 / 09.05.2024 / 20.05.2024 / 03.10.2024 / 25.12.2024 / 26.12.2024)
Example : Max starts his shift on 31.12.2023 at 8 PM and works until 01.01.2024 at 8 AM. The formula should now calculate 8 hours.
Can someone help me?