Method Deck / geometry

Paint needed for a rectangular room

Computes the liters of paint needed to cover a rectangular room's walls, given openings, number of coats, and coverage per liter.

Published for review. The Founder is checking every card himself; anything he strikes comes down the same hour.

Try it

Inputs

Outputs

Steps

  1. Wall perimeter = 2 * (length + width).
  2. Gross wall area = perimeter * height.
  3. Net wall area = gross wall area - openings_area.
  4. Paint needed (liters) = net wall area * coats / coverage_per_liter.
  5. Round both outputs to 2 decimals.

Constants

None.

Sources

Worked example and test vectors

NameInputsAnswer
worked example{"length":4,"width":3,"height":2.5,"openings_area":3,"coats":2,"coverage_per_liter":10}6.40 liters
test vector: one coat{"length":5,"width":5,"height":3,"openings_area":4,"coats":1,"coverage_per_liter":8}7.00 liters

Published card