DMGoldie Posted September 5, 2006 Posted September 5, 2006 Hi, I am trying to round up time to the closest 15 mins. Fields: Service Start Time Service Stop Time Billable Time = (Service End Time - Service Start Time)/60 I want Billable time to round up to the closest 15 mins. In other words I want billable time of 61 mins to equal 75 mins. I want 5 mins to equal 15 mins, etc... Thanks! dmg
comment Posted September 5, 2006 Posted September 5, 2006 Try: Ceiling ( ( Service End Time - Service Start Time ) / 900 ) * 900 It's not clear to me why your calculation divides the result by 60.
DMGoldie Posted September 5, 2006 Author Posted September 5, 2006 Sorry I should have been clearer. I want the billable time to display in .25 intervals of hours. So 62 mins of billable time should equal 1.25 billable hours, 35 mins of billable time should equal .75, and so on... I changed the calculation to: ( Service End Time - Service Start Time )/3600
comment Posted September 5, 2006 Posted September 5, 2006 The calulation I gave above rounds time up to the next quarter-hour, and the result is TIME. If you want the result in hours, make the result a NUMBER and use: Ceiling ( ( Service End Time - Service Start Time ) / 900 ) * 0.25
DMGoldie Posted September 5, 2006 Author Posted September 5, 2006 (edited) Michael - That is perfect! Thanks! dmg Edited September 5, 2006 by Guest
Recommended Posts
This topic is 6716 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now