Add range calculate