Calculating Space Requirement