How the sum works
For walls, add up the length of all four walls (the perimeter) and multiply by the height. Take off about 1.6 m² for each door and the size of each window. A ceiling is simply length times width.
Divide the area by the coverage on the tin, then multiply by the number of coats. If a room has 33 m² of wall, the paint covers 14 m² per litre and you're doing two coats, that's 33 × 2 ÷ 14 = about 4.7 litres.
Coverage on the tin assumes a smooth, sealed surface. New plasterboard and bare render need a sealer or undercoat first, and rough surfaces drink more paint. Check the product data sheet for the right system.