Fixed var arithmetic for memory size