DATEDIFF - TOTAL HOURs
Posted: Wed Jun 17, 2020 7:02 pm
Hi,
Please, I need some help on solve issues related to calculate date/time. I would like to use the functions not to programming.
See what I have:
SCENARIO #1 (simple date)
-----DATE-------TIME1--------TIME2
06/14/2020 12:40 (pm) 05:20 (pm)
Using DateDiff(time2, time1), I am able to get the correct value: 04:40:00, but how I can multiply this value by US$ 25.00? How I convert it into a numeric field?
I would like to do: ((4*60+40)/60)*25 = result.
SCENARIO #2 (more complex and date/time)
-----DATE-------TIME1--------TIME2
06/14/2020 09:00 (am) 02:00 (pm)
06/15/2020 10:00 (am) 05:00 (pm)
06/16/2020 07:00 (pm) 08:00 (am) ---> started the day at night, but ended the day in the next day
I need to get the total of hour, and then to multiply by US$ 25.00/hour. How can I do it?
Tks.
Please, I need some help on solve issues related to calculate date/time. I would like to use the functions not to programming.
See what I have:
SCENARIO #1 (simple date)
-----DATE-------TIME1--------TIME2
06/14/2020 12:40 (pm) 05:20 (pm)
Using DateDiff(time2, time1), I am able to get the correct value: 04:40:00, but how I can multiply this value by US$ 25.00? How I convert it into a numeric field?
I would like to do: ((4*60+40)/60)*25 = result.
SCENARIO #2 (more complex and date/time)
-----DATE-------TIME1--------TIME2
06/14/2020 09:00 (am) 02:00 (pm)
06/15/2020 10:00 (am) 05:00 (pm)
06/16/2020 07:00 (pm) 08:00 (am) ---> started the day at night, but ended the day in the next day
I need to get the total of hour, and then to multiply by US$ 25.00/hour. How can I do it?
Tks.