Calculation of PSUs and batteries for fire alarm systems