To calculate a 4-inch slab length x width x .35 then divide by 27. This will give a little more than 4 inches thick. If using a standard 2x4 then compacting to 4-inch depth This formula works well.
Calculating a 6-inch slab
To calculate a 6-inch slab length x width x .50 then divide by 27