Source: http://msp.aclyon3.free.fr/spip/IMG/pdf/bam_calc.pdf