Your cup will cut out from a cone.
Fig 1 is cone out of which your cup will be cut
Fig 2 is sector of circle when cone is opened into a plane paper ( along its latent height You need is yellow portion of this sctor
we have r, R and h
you can calculate l and
I would like someone else to verify this.