calc_gaslimit