please give API 620 calculation sample