Calculate rounded rectangle border radius based on frame's height