Calculate height to width ratio.