--> //initializations

--> T=8 //m (thickness of layer)
 T  = 

   8.


--> Y=19.0 //KN/m^3 (bulk unit weight)
 Y  = 

   19.


--> g=9.81 
 g  = 

   9.81


--> h=5 //m (height)
 h  = 

   5.


--> R=0 //(effective stress)
 R  = 

   0.


--> //calculations

--> u=h*g // (pore water pressure)
 u  = 

   49.05


--> H=T-((R+u)/Y) // (maximum depth)
 H  = 

   5.4184211


--> //results

--> printf('maximum depth=%f',H) //m
maximum depth=5.418421