How to calculate the number of bricks for a cube of 37 walls in a building

How to calculate the number of bricks for a cube of 37 walls in a building

Give you a formula of brick consumption per cubic brick wall, using this formula can calculate the brick consumption of various wall thickness
How many bricks are used in one side of 370 wall (the mortar joint is 10 mm, the wall thickness is 0.365, the brick length + mortar joint is 0.25, the brick thickness + mortar joint is 0.063, and K is 3)
Net brick consumption = 1 / (0.365 * 0.25 * 0.063) * 3 = 522 pieces