calculate a BEP