How to calculate the risk factor of battery production