$tiempo = 396 ; $anios = (floor($tiempo / 365)); $tiempo = $tiempo % 365; $meses = floor($tiempo / 30); $dias = $tiempo % 30;