/**
 *
 * @param {number} containerWidth
 * @param {number} containerHeight
 * @param {number} childWidth
 * @param {number} childHeight
 * @returns {number}
 */
export function costByRemainingArea(containerWidth, containerHeight, childWidth, childHeight) {
    const dW = containerWidth - childWidth;
    const dH = containerHeight - childHeight;

    return dW * containerHeight + dH * childWidth;
}
