Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Business Days (5.5 Days??)

Status
Not open for further replies.

Monkeyboy126

IS-IT--Management
Dec 9, 2002
47
0
0
GB
Hi

I've seen many formulas to utilise business days but my requirement is slightly different. I run a helpdesk which has operating hours of 8.00 - 18-00 Mon - Fri & 8.00 - 13.00 Saturday.

In calculating the amount of business days a call has been open, how do I incorporate the 5 hours on Saturday??

Thanks

Paul
 
Are you intending to count it as 5.5 days per week?

Crystal version?
Database used?
Example data?
Expected output?

How you incorporate the 5 hours seems like a business decision to me, but you might consider breaking it down to hours/8.

One means would be to have a periods table which has attributes about every day, this is common in data warehousing.

Within Crystal you might use a more generic means:

whileprintingrecords;
if dayofweek({table.date}) = 6 then
.5
else
dayofweek({table.date}) < 6 then
1
else
0

Now just sum this field

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top