Measuring battery charge

Your first problem is that terminal voltage on an SLA is not a direct indication of state of charge. One possible concept might be to get a set of state-of-charge vs voltage curves or voltage vs time curves (at constant current) and create a look-up table whereby voltage refers to state of charge.