A formula for the calculation of the longshore sediment transport including spectral effects