Calculating the bottom thickness