Tile calculator solution