$targetMonth || ($currentMonth === $targetMonth && $currentDay >= $targetDay)) { $targetYear = $currentYear + 1; } else { $targetYear = $currentYear; } $time = '10:00:00'; return strtotime("$targetYear-$targetMonth-$targetDay $time") * 1000; } }