This isn't directly related to your question, but it's something that many builders don't think about when adding electrical loads to their airplane.

If you're using a Rotax "iS" engine, be sure that you have a step in your checklist to shed the pitot heat in the event of a stator/regulator failure. Pitot heat will likely be the highest non-engine electrical load in the aircraft and will greatly accelerate battery discharge. In the unlikely event of a dual stator/regulator failure, the engine will only run as long as the battery can sustain it, so electrical load shedding is critically important. This applies to any other electrically dependent engine, not just Rotaxes.

Assuming a lithium battery and taking EarthX as an example, the discharge curve for their ETX-900 (15.6Ah; just a tick under the Rotax-specified 16Ah) shows that by reducing load from 12.4A to 6.2A (pretty close to turning off pitot heat), time-to-discharge is doubled.

ETX-900 Discharge Time.jpg

As you can see from the curves in that chart, when lithium-based batteries get near fully discharged their voltage suddenly falls off a cliff (and the higher the load, the steeper the cliff), so accurately predicting battery-only engine endurance based on measured battery voltage is very difficult. When you notice voltage falling you may have seconds until engine failure. Battery Management Systems add a big unknown to the equation, as most battery manufacturers don't publish the exact voltage at which their BMS disconnects the battery to prevent over-discharge.

For example, the EarthX battery manual says this [page 2, "ETX Series - BMS"]:

The BMS disconnects the battery from the load if 100% of the usable energy is consumed. The usable energy is the rated Ah of the battery (new battery at 25DegC, see the Specification section within). [...] An over-discharged battery typically has an internal voltage less than 11.0V, but when the BMS disconnects, the voltage reading at the terminals of the battery will be zero volts.
Then later, it says this [page 40, "If your battery is at zero volts."]:

EarthX lithium batteries have over discharge protection via an internal Battery Management System (BMS) to disconnect the battery from the active load (your vehicle) to protect the cells from damage when it is 95-98% drained.
The manual only hints at the exact voltage where the BMS disconnects the battery from aircraft loads, so watching the voltmeter to predict cutoff is a fool's errand. Bottom line: with an electrically dependent engine and a lithium battery, when the charging system fails it's time to start aggressively saving electrons.