Lay your tiles, laminate or bricks or anything alike and calculate how many you need given a surface. Still needs to be extended with extra functions for non rectangular shapes.