Accurate capacity calculation