mIRC is 32bit and the $calc function is based on that. That means you can only use numbers up to 32bit in size. Anything larger won't work correctly.