Now I know the reason behind this error is because I'm trying to divide by zero as I've figured that out in the back end.
My only problem is fixing it. I've researched and found out that others have used DECODE & SUM to resolve these issues but I can't seem to get it working.