Participant
August 23, 2021
質問
Calculate Number of Pay Periods Between 2 dates
- August 23, 2021
- 返信数 3.
- 6548 ビュー
I need help a date converting an excel formula to a script usable in Adobe Acrobat Pro DC Custom calculation script.
I need to calculate the number of bi-weekly pay periods between two effective dates excluding Saturdays and Sundays.
In excel I use the following formula to calculate the number of pay periods:
=(NETWORKDAYS(StartDate1,EndDate1,0Holidays)/10)
I calcultate the number of workdays (Monday - Friday) between a start and an end date, excluding (Saturday and Sundays), then I divide the number of workdays by 10 to calculate the number of pay periods.
Example:
Start Date: 08/20/2021
End Date: 09/02/2021
Calculates to 1 pay period.
Thank You
