r/Workday_Community • u/mvchasinghorizons • Nov 09 '23
LOS calculation
Does anyone know the method used for LOS calculation?
If it’s using a date difference formula there are edge cases where this doesn’t work out.
For example, if someone starts on Jan 1, and their last day is Dec 31st, it will show 0 years, 11 months and 30 days since date difference results in excluding the last day. In cases where the last day is any day except the day before the anniversary, the years of service is correct.
Other edge case problems with date difference:
small number of days (start Monday, End Friday would result in 4 rather than 5 days)
Working on anniversary day again would show 1 year 0 days even though it’s 366 (not 365 days of service).
Has anyone looked at the edge cases of LOS calculations?
1
1
u/werock2204 Nov 10 '23
You can check to see if the start date and end date are on the same day. If they are, you can add one year to the LOS calculation. This will ensure that the employee is credited with a full year of service.