Skip to main content
Question

Calculating a half a period

  • August 10, 2022
  • 0 replies
  • 106 views

Currently have a summary field that calculates the total of hours worked during a pay period  start and pay period end. I now need to calculate the total of hours halfway through the pay period.

------------------------------
Willis Taylor
------------------------------
This topic has been closed for replies.

Forum|alt.badge.img+20
  • Registered
  • August 10, 2022
You'll want a formula date field that is the date halfway through the period. You'll need to decide what 'halfway' means (if there are 15 days, is 7 or 8 days halfway through the period?).

But in general - that date field would take the duration between the start and end date, divide that number by 2, then add it to the start date.

So if the duration between 2 dates is 14 days, 7 days is the halfway point. Then add 7 days to start date ([Start Date] = Days(HalfDuration).

Then use that for your summary field.

------------------------------
Mike Tamoush
------------------------------