Square Wave UPS into Sine wave UPS

a simple way to convert any Squar wave (desi/imported) UPS into Sine wave UPS. i tried it with my APC-500 old UPS it worked great. guys don't waste money in buying expensive sine wave UPS