fixed math calc for reverse iptag sdram usage