closed loop in power electronics,selecting best ardunio board

Do you know how to calculate how many kVAR you need to correct the power factor ?