Basic BER calculation