I have seen that if $u$ is a summable function (in fact, I saw that if $u \in W^{1,p}$, but I think that summable is sufficient) in $\mathbb{R}^n$ then \begin{equation} \int_{\{u>j\}} (u-j) dx = \int_j^\infty | \{u>j\}| dt \end{equation} where $j$ is some positive integer and the notation $|A|$ denotes the Lebesgue measure of a set $A$.
I can't see this now, but I imagine that this is simple. I thank you.