A simple configurable grade calculator