In this paper we obtain the Beňes equation for the evolution of the probability distribution of the excursion process associated with the level crossings of a general storage process. We then show that under stationarity and ergodicity assumptions on the process we can recover the well-known rate conservation law (RCL). Using the stationary solution we then show that the existence of an invariant solution can be studied in terms of an operator equation and we show how this characterization leads to a very simple explicit computation of the stationary distribution.