Update specification and implementation to calculate tank fill level
based on balance of empty and full when a clear line can't be found.