Hello,
Really sorry not to bring a code, but really I do not have any idea on how to start this calculations, if you can teach me on how to do it to learn I will appreciate it. This are the requirements for each country:
UK:
Base leave = 22 days when start a job
For first 3yrs add 1 day per year till Max 25 days
Year runs January to December
France:
The annual leave is 25 days (regardless of tenure or position)
Year run from 01 JUN - 31 MAY (the following year)
Cost Rica:
Accrue 1 day per month until your 5 year anniversary, for which you get two extra days each year until you have your 8th year anniversary, then you will get 3 days each year until you have your 10th anniversary for which you will have 4 extra days per year and it stops there.
At the end of each year you cannot have more than 24 days accrued.
Year Days Per Year
1 12
2 12
3 12
4 12
5 14
6 14
7 14
8 15
9 15
10 16
11 16
You max out at 16 days per year starting your 10 year anniversary
Leave can also be carried over till MAX of 24days per year.
Year runs January to December.
Calculation for above:
1. 1-4yrs = 12 days (1day/year)
2. 5-7yrs add 2 days to base of 12 = 14days
3. 8-9yrs add 3 days to base of 12 = 15days
4. 10yr > add 4 days to base of 12 = 16days max
Really sorry not to bring a code, but really I do not have any idea on how to start this calculations, if you can teach me on how to do it to learn I will appreciate it. This are the requirements for each country:
UK:
Base leave = 22 days when start a job
For first 3yrs add 1 day per year till Max 25 days
Year runs January to December
France:
The annual leave is 25 days (regardless of tenure or position)
Year run from 01 JUN - 31 MAY (the following year)
Cost Rica:
Accrue 1 day per month until your 5 year anniversary, for which you get two extra days each year until you have your 8th year anniversary, then you will get 3 days each year until you have your 10th anniversary for which you will have 4 extra days per year and it stops there.
At the end of each year you cannot have more than 24 days accrued.
Year Days Per Year
1 12
2 12
3 12
4 12
5 14
6 14
7 14
8 15
9 15
10 16
11 16
You max out at 16 days per year starting your 10 year anniversary
Leave can also be carried over till MAX of 24days per year.
Year runs January to December.
Calculation for above:
1. 1-4yrs = 12 days (1day/year)
2. 5-7yrs add 2 days to base of 12 = 14days
3. 8-9yrs add 3 days to base of 12 = 15days
4. 10yr > add 4 days to base of 12 = 16days max
Comment