Building subnet_grid and calculator