MarkComish
6 years agoQrew Assistant Captain
Formula Numeric Field
Looking for some help with a formula for a Formula Numeric field.
So we give full-time employees 14 paid days off per year. So if they work the full year it is easy to calculate how many days off they get 14 but if they we hired 9-1-19 they would only get 5 (we only do full days or half days so we round up to the nearest half day if not a whole number)
So I have a formula numeric field tat is simply: 14-[Days Used] to calculate the remaining days.
What I need is if their [start date] is on or before Jan 1 of the current year then 14-[Days Used], If [start date] is after Jan 1 of current year then [start date] divided by number of months remaining in the current year then rounded up to the half day (if it is not a whole number) -[days used]
Hope this makes sense.
------------------------------
Mark Comish
------------------------------
So we give full-time employees 14 paid days off per year. So if they work the full year it is easy to calculate how many days off they get 14 but if they we hired 9-1-19 they would only get 5 (we only do full days or half days so we round up to the nearest half day if not a whole number)
So I have a formula numeric field tat is simply: 14-[Days Used] to calculate the remaining days.
What I need is if their [start date] is on or before Jan 1 of the current year then 14-[Days Used], If [start date] is after Jan 1 of current year then [start date] divided by number of months remaining in the current year then rounded up to the half day (if it is not a whole number) -[days used]
Hope this makes sense.
------------------------------
Mark Comish
------------------------------