Software for hydrogen sulphate protection in well maintenance