Hi JangJang,
First, since your condition was not met a division by zero is possible, I would sort this out first then revisit the conditions, what are you saying in the condition statement (3 if then's) and think about what you are trying to accomplish?
Are you just trying to get the fields to match this criteria?
Robert88