calculate grid if fixed