You can use a ledger to calculate expenses.