Thankyou @sheikinet. First place to start would be this line
volume = ((waterTankHt*(PI*(sq(waterTankDia/2))))-(distance*(PI*(sq(waterTankDia/2)))))/1000;
Instead of formula for circular tank you will need formulae for rectangular tank.
Thankyou @sheikinet. First place to start would be this line
volume = ((waterTankHt*(PI*(sq(waterTankDia/2))))-(distance*(PI*(sq(waterTankDia/2)))))/1000;
Instead of formula for circular tank you will need formulae for rectangular tank.