Added function to calculate max dt for wavefd