Stochastic wave energy calculation formulation