good calculation for ram size