A seal lead/ ( 12v) acid battery charger. Red LED lights on charging.
A discharged battery will take at least 180 mah. As the battery charges, using a constant voltage the current diminishes to 110mah or below as the battery reaches full charge (Green LED lit). A compariter is used to sense 2 currents across the 110 mOhm resistor.
110mah to switch off charging and 180 mah or above is charging. The switch simulates the switching threshold, via the 75 ohm and 110 ohm resistors..
Note, this circuit works, but in this simulator I had to add the diode on the output of the comparator, otherwise an error occurred.