This is a function modified from my earlier blog http://visakhm.blogspot.com/2010/02/generating-calendar-table.html The below function basically calculates the total business hours elapsed between two date periods taking into consideration business start and end times. It also assumes that there’s an existing table…