Take cup thickness into account, not just height.