php functions for calculating labor cost percentage and employee wages from clock in/out db records within an input datetime search range.