calculate jelly bean size