Given n
drives and capacity s
of each drive, how would I calculate storage capacity for RAID 2 / 3 / 4?
For example, I know RAID 5's storage capacity can be calculated with the following formula:
(n  1) * s

RAID 2A RAID 2 stripes data at the bit (rather than block) level, and uses a Hamming code for error correction. This code uses m parity bits out of 2^{m}  1 bits therefor the storage capacity for n disks would be 2^{m}  m  1 where m = log_{2}(n+1). Here are some possible scenarios:
RAID 3A RAID 3 uses bytelevel striping with a dedicated parity disk, so the capacity is (n  1) * s. RAID 4A RAID 4 uses blocklevel striping with a dedicated parity disk, so again the capacity is (n  1) * s. 

