G
Guest
I have 2 questions. First, I'm looking for help in calculating the amount of
time (in hours) for a transaction. The user enters the start date, start
time, end date, and end time. Using these four variables, I need to
calculate the amount of hours.
Secondly, I would also like calculate a utilization rate. For example, a
transaction begins on the 11/15/05 and ends on 11/19/05. The total amount of
time is for 80 hours (or 4 days). Anything over 4 hours is credited as a
full day. Therefore, this unit gets credit for 11/15, 11/16, 11/17, and
11/18. I'm having trouble determining how to do this since transactions can
cross months as well. I only have to figure out the utilization for the
previous month and the current month.
And I might have 100 units at each location so it gets a little more complex
to keep track of.
Any help with these two questions would be greatly appreciated. Thanks
again for all of the help....
time (in hours) for a transaction. The user enters the start date, start
time, end date, and end time. Using these four variables, I need to
calculate the amount of hours.
Secondly, I would also like calculate a utilization rate. For example, a
transaction begins on the 11/15/05 and ends on 11/19/05. The total amount of
time is for 80 hours (or 4 days). Anything over 4 hours is credited as a
full day. Therefore, this unit gets credit for 11/15, 11/16, 11/17, and
11/18. I'm having trouble determining how to do this since transactions can
cross months as well. I only have to figure out the utilization for the
previous month and the current month.
And I might have 100 units at each location so it gets a little more complex
to keep track of.
Any help with these two questions would be greatly appreciated. Thanks
again for all of the help....