• Hi

    I Feel the function dont serve the purpose. First thing is in INDIA we dont have 5 Day Working Concept except for Software Comapnies. ALL are 6 Days Working and what about the mandatory Holidays in a Region Like Republic Day and Independance Day  In India , Like that each region will have its own Holidays.  And if the startdate and and Enddate is in Between a Week how the function is making sure that the No Of Sundays and Saturdays in the first and last fractions ?. I feel in Real Life this function will fail.  In real Life you need to handle the following cases

    1. Any Type of Work Week Definition Based on Diffrent REgion and Locations

         Eg. The Work Days are diffrent in US,INDIA and UAE

    2. Holidays and Mandatory Holidays in Diffrernt Locations

     Eg. In INDIA Jan 26, Aug 15, OCt 2 is a Mandatory Holidays. But there can be other holidays which is Non Mandatory .

    I feel untill you dont handle this issues this cannot be used in a Live Situation. I have nothing against your UDF . But i Feel this need to be generalised. to be used in real Life Situations 

    Best

    Jeswanth

    --------------------------------