convert disk debit to int