We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7dcdb30 + 818e4a2 commit cb20f85Copy full SHA for cb20f85
server/src/vacationDayCalculation.ts
@@ -22,9 +22,10 @@ async function getTotalVacationDays(user: User) {
22
23
const contractDuration = (nextContractStartYear - contract.startYear) * 12 + nextContractStartMonth - contract.startMonth;
24
25
- vacationDays += Math.ceil(contract.vacationDays * contractDuration / 12);
+ vacationDays += contract.vacationDays * contractDuration / 12
26
}
27
28
+ vacationDays = Math.ceil(vacationDays);
29
return vacationDays;
30
31
0 commit comments