In this paper we are interested in the upper bound of the lifespan estimate for the compressible Euler system with time dependent damping and small initial perturbations. We employ some techniques from the blow-up study of nonlinear wave equations. The novelty consists in the introduction of tools from the Orlicz spaces theory to handle the nonlinear term emerging from the pressure p ≡ p(ρ), which admits different asymptotic behavior for large and small values of ρ − 1, being ρ the density. Hence we can establish, in dimensions n ∈ {2, 3}, unified upper bounds of the lifespan estimate depending only on the dimension n and on the damping strength, and independent of the adiabatic index γ > 1. We conjecture our results to be optimal. The method employed here not only improves the known upper bounds of the lifespan for n ∈ {2, 3}, but has potential application in the study of related problems.