$dateToCheck = ’10/12/2022′; $daysPassed = 45;
if (time() > strtotime($dateToCheck . ‘ + ‘ . $daysPassed . ‘ days’)) { return ‘YES’; } else { return ‘NO’; }