Calculating Power Factor Using ARDUINO UNO

If you know the delay between zero crossings of current and voltage you need only convert delay to phase difference in degrees or radians to calculate the power factor.