Hello, I don't know if I am in the right forum but, my question is this. I am using a float to measure the amount of oil in a tank. The thank is in the shape of an obround. It holds around 275 gallon and the dimensions are approximations width a depth of 48", height = 70", Length 60". It works fine. I need to find out the amount of oil if the tank isn't level on the x or y or both x and y axis. The sensor can be located anywhere along the apex of the tank. The float is a ball tether to take up reel attached to this take up reel which in turn is attached to gear. A hall effect sensor sends a pulse to a microprocessor each time a tooth from the gear passes, when the liquid increases or decreases. When the tank is level I can calculate the volume. Using r^2arcCos((r-h)/r)-(r-h)sqrt(2*r*h-h^2) were r = radius and h is height from the bottom of the semicircle to the liquid if it falls below the semicircle. I think I am out of depth on this. I'm in my mid fifty's and math never came easy to me.So any help in any way would appreciated. Does

anyone have a formula for this? The attached drawing may help.

Thank you for any and all help,

Ken

P.S. I have two sensors, One X and one Y