get ratio