there was another calculate grade method in this app somewhere.  It should really be

when 80...90
when 70...80 etc.

The 3 digits excludes the last number but it accounts for all of the floats in between. 89.9494949494 for example.