update formula for hydro calculation