How to derive the formula of a frustum