View Full Version : help with time cards..

07-29-2007, 07:52 AM
Hi there,

I'm just making a small script for work and just would like to ask you guys how you would create this?

At my work, you get 25% (of base pay) shift penalties for the time between 6pm - 8pm. But then you get 50% for the time between 8pm - 10pm.

Basically, i need to have a script where a user puts in the hours worked in a day (say 2pm - 10pm ).. and have the script tell us how many hours worked at ordinary, how many at 25% and how many at 50%.

I have a pretty general understanding of PHP, but just am having trouble thinkin on how to work this..

Any help would be great :)


07-30-2007, 02:10 AM