debt calculation fixed