days in ar calculation