starting to calculate which box the number is in