<?php $Fecha= date($FechaActual + $DIAS ); $Fecha= date("$Fecha/m/Y"); if ($Fecha >= 30) { $Fecha1= date("d/m/Y", strtotime("$Fecha1 + 1 month - 1 day")); $Fecha=$Fecha1; } ?>