Calculate capacity by back propagating capacity, constraint from last to first module