Calculation of PSUs and batteries for intrusion alarm systems