finding upper limit of constants