Grade Caculator work for batch