Tentative delivery date calculation in PHP


Here is a simple function you can use if you need your PHP application to display a tentative delivery/completion date to your customer. It excludes the weekends in calculation so only business days are considered. For example, if your e-commerce site ships a product in three business days and customer orders on Thursday then this function will return tentative delivery day as Tuesday, not Sunday. Continue reading