Calculate Time for Grid Reconfiguration