dead space calculation