How is AF calculated?