<?php $now = new DateTime; $next = new DateTime("last day of next week - 4 weekdays"); var_dump($now->format('d.m.Y'), $next->format('d.m.Y'), $next->diff($now)->format('%a'));
You have javascript disabled. You will not be able to edit any code.