Hello again!
Here's my current problem. In the Jury Management system I/we have been working one, one of the processes figures out how many hours each juror has worked and how much they are owed. However, public employees (those that work for the State, city, etc), only get paid for hours at the court OUTSIDE of their normal working hours. For example, a juror is a public employee and has regular working hours of 12:00 pm until 9:00 pm. If they served at the court the following times:
day 1 9:30 am 11:30 am (paid for all hours)
day 2 2:30 pm 4:30 pm (paid for no hours)
day 3 9:30 am 4:30 pm (paid from 9:30 - 12:00)
Does anyone have an idea on the best way to calculate the number of hours to be paid? So I end up with:
Day 1 2 hours
day 2 0 hours
day 3 2.5 hours
I've been thinking along the lines of an if or case statement, but can't quite work out all the possibilites. Any assistance would be appreciated!
Thanks
Leslie
landrews@metrocourt.state.nm.us
There are 10 types of people in the world -
those who understand binary
and
those who don't!
Here's my current problem. In the Jury Management system I/we have been working one, one of the processes figures out how many hours each juror has worked and how much they are owed. However, public employees (those that work for the State, city, etc), only get paid for hours at the court OUTSIDE of their normal working hours. For example, a juror is a public employee and has regular working hours of 12:00 pm until 9:00 pm. If they served at the court the following times:
day 1 9:30 am 11:30 am (paid for all hours)
day 2 2:30 pm 4:30 pm (paid for no hours)
day 3 9:30 am 4:30 pm (paid from 9:30 - 12:00)
Does anyone have an idea on the best way to calculate the number of hours to be paid? So I end up with:
Day 1 2 hours
day 2 0 hours
day 3 2.5 hours
I've been thinking along the lines of an if or case statement, but can't quite work out all the possibilites. Any assistance would be appreciated!
Thanks
Leslie
landrews@metrocourt.state.nm.us
There are 10 types of people in the world -
those who understand binary
and
those who don't!