Calculate arifm term