How to calculate long term debt