Looking for help to create a new column in my Dataverse table, that calculates the Accrued Days earned for vacation based on start date. This column would also need to be editable (rare but necessary). This will be used in my Vacation Time Off app to show how many days are alloted for the particular user.
Below are the guidelines that are needed for calculating the days (underlined in examples below)
After one full year of employment = earn 5 days of paid vacation.
After two full years of employment = earn 10 days of paid vacation.
After five years = earn 11 days
After six years = earn12 days
After seven years = earn 13 days
After eight years = earn 14 days
After nine years and higher = earn 15 days
Ex:
Michelle started on 11/16/2008 she would have accrued 15 days of vacation
Jane started on 11/25/2020 she would have accrued 10 days of vacation
Millie started on 1/1/2022 she would have accrued 5 days
Steve started on 2/15/2022 he would have accrued 0 days (would automatically change to 5 days on 2/15/2023)
My Table has the following columns already
EMP_EmployeeID (ex: 18)
EMP_Name_LFM (ex: Coslet, Michelle E)
EMP_DateOfHire (ex: 11/16/2008 6:00 PM)
Status (ex: Active)
Employment Length (ex: 5161) = days employed
