calculation of bonus