Calculating Probability of Failure of Electrical & Mechanical Systems