cwd function

Longest wet period