util calcul bound oval given rectangular text box suffici constrain problem defin gap given paramet code vert pad code box oval comput convert integ end param rect size dimens rectangl bound param vert pad pad box ellips dimens requir oval dimens calc ellips dimens rect size vert pad work radii ellips right corner ellips cartesian coordin centr origin rect size height vert pad rect size width rect size height formula describ overal descript math sqrt result integ round ensur radii integ conveni dimens math ceil math ceil 