A Formula for the Calculation of the Longshore Sediment Transport Including Spectral Effects