How to do a greater than calculation