Ups Power Factor Calculation