Calculating pay based on start and end time

E

Edmund Wong

I use Allen Browne's formula, PayAmount: Round(CCur(Nz(DateDiff("n",
[StartDateTime], [EndDateTime]) * [HourlyRate] / 60, 0)), 2) to
compute pay. But I'm having a difficult time when someone works from,
say, 9:00pm to 2:00 am. I get the wrong values. How do I compute time
from when it crosses midnight?

Thanks for any help
 
Top