Php Script (working Day)

Php Script (working Day)
I need a php script(function) which receive 2 argument(date and day) and return a date. example:

function calculate(“2009-12-31 14:09:23”,40) {
….
}

this function should add 40 business(working) days to this date and calculate new date. The days are only working days and should not calculate weekend(Saturday and Sunday). it should return like: “2010-04-19 14:09:23”.

Leave a Reply

Your email address will not be published. Required fields are marked *