debt calculatedSum fix