I'm not sure why you are dividing by 60 and then multiplying back by 60, that will get you back where you started.
However, your problem is likely with the Real Number field. Try setting the result into an integer field. This will truncate the decimals though. But I think you can do a set fields from an Integer field to a Real Number field, just you cannot perform math and set the value directly to the real number field. You can try this to retain the seconds: 1) Set tmpIntNow = $TIMESTAMP$ 2) Set tmpIntMinutes = ($tmpIntNow$ - $ArrivalTime$) / 60 3) Set tmpIntSeconds = ($tmpIntNow - $ArrivalTime) - ($tmpIntMinutes$ * 60) 1) is to make sure that you are using the same value for both calculations in 2 and 3. 2) gives you the number of minutes 3) gives you the number of seconds Then you can have your two Real Fields that contain your Minutes and your Seconds, or you can possibly try to do some concatenation of the fields or whatever, but you will be limited with what you can do on a Real Number field. Thanks, Gary Opela, Jr., RSP Remedy Engineer Leader Communications, Inc. http://www.5pointleader.com http://www.lcibest.com Best Product, Best People, Best PriceTM An ISO 9001:2000 Certified, CMMI(r) Level 3 Rated Company -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of priyanka_sareen Sent: Tuesday, April 22, 2008 11:01 PM To: [email protected] Subject: Capturing diffrence of two date time fields in Remedy..? Hi, My requirement is to capture in a FIELD the time elapsed since an entry was created in a form. eg. i have a ticket which arrives at 12:30 pm, this value is getting saved in 'Arrival Time' field which is a date time field. Now, if i open the ticket at 12:45 pm, then this FIELD should show value of 15 min I have made an active link, which is firing on Open Window,Display of the form. And performing 'Set Fields' action in FIELD = $TIMESTAMP$-'ArrivalTime' /60 *60 the field i created is of data type Real Number field. It is giving me ARERR 312. -- View this message in context: http://www.nabble.com/Capturing-diffrence-of-two-date-time-fields-in-Rem edy..--tp16830549p16830549.html Sent from the ARS (Action Request System) mailing list archive at Nabble.com. ________________________________________________________________________ _______ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

