How to get range of two numbers?