Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utility: Create tool to generate a report of holiday balance for any given date #5

Open
cwchriswilliams opened this issue May 26, 2022 · 0 comments

Comments

@cwchriswilliams
Copy link

cwchriswilliams commented May 26, 2022

Generate utility which can receive data about staff holidays and return a report indicating staff balance on a given date.

Input:

  • data of staff start-date, holiday-region and holiday-entitlement
  • data of public holidays for staff regions
  • data of personal holidays taken by staff members

Output:

  • Report indicating holiday balance on given date

Holiday Entitlement:

  • holiday-entitlement is pro-rata for periods worked (e.g. if start date in June, by Dec 31st, entitlement will be full-entitlement/2)
  • holiday-entitlement is pro-rata for proportion of full-time hours worked (e.g. if working 20/40 hrs per week, holiday entitlement is full-entitlement/2)
  • When less than 5 days per week are worked, holiday-entitlement is increased by public holidays in year / 5 * working days

Balance Accrual:

  • balance is accrued from Jan 1st or employee start date (whichever is later)
  • Balance accrues to holiday-entitlement Dec 31st
  • Balance can be negative
  • On Jan 1st a maximum number of carryover days can be carried over to the next year.

Deductions:

  • When 5 days per week are worked, public holidays do not subtract from balance
  • Public holidays will be defined by staff-member region on the given date
  • Deductions can be less than 1 day
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant