modified calculate long overtime function 2