a ruby program that calculates business hours of a job depending on open hours and job duration