Calculate precision