fixes for todate totals USED and AVAILABLE