Debug for calculate