Update gridcalculator.rst

Added a conditional example