add 31 days to date php code example Example: php script to calculate next 50 days from current date $NewDate=Date('y:m:d', strtotime('+50 days'));