ad hoc cost accounting