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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula for adding additional hours - Forecasting 1

Status
Not open for further replies.

rico7937

IS-IT--Management
Feb 20, 2001
33
US
I am using Crystal Reports v10.

I am trying to create a formula that will let me forecast when a Service Desk Ticket will breach based upon severity.

SEV 1 4 HRS
SEV 2 24 HRS
SEV 3 10808 HRS(7 DAYS)

Ex. Sev 1 Ticket opened 6/30/2008 1:00:00 PM should breach at 6/30/2008 5:00:00 PM

Currentyl I am using this formula to convert it to EST:

DTSToDateTime(tzcvtConvToLocalDatetimeByName(ToText(DateTime({PROBLEMS.OPEN_DATE},{PROBLEMS.OPEN_TIME}),"MM/dd/yyyy hh:mm:ss tt"),"Eastern Standard Time"))

Now I am trying to figure out how to add this command to go along with it:

dateadd("h",4,datetime({PROBLEMS.OPEN_DATE},{PROBLEMS.OPEN_TIME}))

So I need both in one formula statement if possible.

I just need the addtional time added on to the open date & time to help me forecast the breach time. Any suggestion would be greatly appreciated.
 
Couldn't you just use:

dateadd("h",4,{@converteddt})

...where {@converteddt} is your conversion formula?

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top