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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top