How to calculate bit depth. .