setting up function

calculation of water