Added function for total debt